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

Fields value not updating

mnucci
Registered: Sep 27 2007
Posts: 2

I have a form with several fields. If I enter data into a field and then push a button I have a script on, the value of the field I changed is not updated until AFTER the script runs.

So if I have a Text Field(text1) with a value of 99 and I change it to 100 then push my button. Even though I see 100 on the screen, the value returned from this.getField("text1").value in the button javascript is still returns the old value of 99. The second time I push the button, I will get a result of 100.

How do I force that all the fields values are updated to what is visible on the screen BEFORE the script runs or at the beginning of the script running so it is correct by the time it hits the this.getField("text1").value?

Please help.

Thanks,

Marcus

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You have to check the "Form Field Calculation Order" and arrange the fields in the order you want them to be calculated in or place all your calculation scripts in one field.

George Kaiser