Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
prajeshdesai
Contributor

Lots of developer getting confused in manipulating one field value on another field. I also suffer from this when i started learning adobe forms and adobe script. so now i found something that auto reference the fields using below trick.

Also go through To insert object reference syntax automatically: Adobe Forms

Example:

Now lets say i'm having below hierarchy,

Now i want to write script to fill Sub2 = Sub1 + 10.

Step 1) Click on txtSub2.

Step 2) Then click in script editor event, where you want to write code to fill Sub2.

   Now press Ctrl key and drag mouse pointer on field in Design View, pointer icon will change to \/ icon. (v shape icon)

Step 3) Now when your mouse pointer is change, do mouse click, and reference of field will auto paste in script editor.

this way you can easily manipulate fileds in adobe forms.

Step 4). Now write below script,

Output,

Now, for Total i want Sub1 + Sub2,

Same as i expalined above,

     > select Sub1 or Sub2 (one by one),

     > click in script editor event,

     > press Ctrl key,

     > drag mouse pointer on respective field and

     > do mouse click

Your final script will be,

For Mass Total, (sub1 + sub2 + total)

Final Output,

We get what we want, this may confused you, drop your query below if any.

Hope this helps.

6 Comments
Labels in this area