Make your adobeforms more interactive with Formcalc
Make your adobeforms more interactive with Formcalc
If you are still making V shape with your eyebrow that what I am talking
about, let me tell you it’s a Java script/formcalc.
In this article I will be covering how to fill color into input fields, simple
mathematical operation, conditional statement and popup windows.
If you don’t know the basic of interactive form and you have not created
before kindly go through the how to create an interactive adobeforms.
Before starting the formcalc function the important thing is “how to access
the particular element”.
Let’s say you have one input_no input field in your adobeform.
And one submit button. To apply formcalc function on INPUT_NO you can
use
For this you can use a fill color attribute of the input field.
See the blow screen shot (“Don’t worry about extra buttons simply
remember that you want to fill the color in the input_no field when you click
on the FILL COLOR Button”)
ADOBE_DATA.FORM.INPUT_NO.FillColor = “102,179,255”
Now execute Webdynpro application or you can test it using Preview PDF
tab.
How to use IF condition and arithmetic operations.
The requirement is to add 100 into input_no field if it contains less than 100
value and subtract 100 from the input_no field if it contains more than 100.
This addition or subtraction should be carried out when you click on the
ADD/SUBTRACT Button.
ADOBE_DATA.FORM.INPUT_NO.rawValue = ADOBE_DATA.FORM.INPUT_NO.rawValue + 10
else
ADOBE_DATA.FORM.INPUT_NO.rawValue = ADOBE_DATA.FORM.INPUT_NO.rawValue – 10
endif