These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Writing Script in LiveCycle

MsMiss
Registered: May 31 2011
Posts: 1

I need to write script for the following.
If New Compensation is null the Change Compensation is null. If the New Compensation is greater than the Compensation then the Change Compensation is equal to New Compensation minus Compensation
 
I am hoping that someone can help me.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hmm,

not much input, but I assume you have 3 numeric fields.
Try this FormCalc script in the calculate:Event of ChangeCompensation.
  1. if (newCompensation eq null) then
  2. null
  3. elseif (newCompensation gt Compensation) then
  4. newCompensation - Compensation
  5. endif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs