cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form - Object property for FormCalc/Javascript

Former Member
0 Kudos

Hi All

I'm learning to use Adobe Form - FormCalc/Javascript - In some of the examples that I have seen fofar

the codes (FormCalc/Javascript) used a qualified name of an object property for setting value i.e.

In FormCalc:

DateTimeField1.rawValue = num2date(date(), DateFmt(3))

In Javascript:

this.rawValue = xfa.layout.pageCount();

pantsWaist.border.edge.color.value = "255,0,0";

pantsLength.presence = "hidden"

etc..

Could someone please tell me how/where I can get the property list that available for an object ?

(i.e. rawValue, presence, value etc...) I can't see on the Form builder (sorry for such a novice question - but as I said I am very new)

Thanks

Points will be rewarded for any reply -

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Liem,

Whenever u press a "." after any oject say $ in FormCalc, or this in Javascript u will find relative properties that u can set at that time for the mentioned object.

try this, place a Text field, select that and go to script editor, select language FormCalc:

write $. and u will find a dropdown that'll show u possible list of properties u can change.

Similarly, if u try this with "this." in JavaScript another dropdown will show u possible list of properties that u can change.

Hope this helps

Regards

Amita

Answers (0)