Delay in message toggle on Adobe [Acrobat] forms
I've written a simple script, but cannot seems to figure out why am I experiencing a delay in the toggle of the message.
I have a textbox that sum's up values selected on 3 drop down lists. All have been formatted as numbers. The sum works just fine.
I have another textbox that stores the above total and I have added a script to display a message if the value if greater than 100 or less than 100.
The message displays after a lag. For example, if the total selected is greater than 100 and i use the dropdown to select that now makes the value less than 100, the message does not switch unless i make a second change on the drop down.
here is the code:
if (this.getField("Text2").value < 100) {
this.getField("message1").display = display.visible;
this.getField("message2").display = display.hidden; }
if (this.getField("Text2").value > 100) {
this.getField("message2").display = display.visible;
this.getField("message1").display = display.hidden; }
I guess i am missing some kind of event trigger when the drop down is changed. I tried to place the script on the dropdowns as well, but no luck.
help is much appreciated!
[Title edited by moderator to include “Acrobat”. Adobe is the company; Acrobat is the software.]
