Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Which Event can I use in this situation? Ignore previous topic with same title!

Avatar

Former Community Member
I hit the enter button accidentally!



I have a Check Box object with Global Binding that is duplicated on another page in the same form. Because it is Global it automatically updates the check box on the second page. Now I want to initiate another action based on the check box value change. Which event can I use to do this? If not is there a different way to do this?



Thanks in advance for your help!
5 Replies

Avatar

Former Community Member
Paul,



Thanks but I tried that and it doesn't fire automatically! It works when I click the bo manually though but t doesn't fire when I click on the previous page (even with Global binding!).

Avatar

Level 2
In the change event of your first checkbox put this line.



xfa.form.PAGE2.otherCheckbox.execEvent('change');



This will trigger the change event of your other checkbox. You can use this to trigger any event of any control you have on any page as well.

Avatar

Former Community Member
I have tried with both change event and exit event and none of them fires!

Avatar

Former Community Member
Found the problem!



Leave out the xfa prefix and change the single quotes to double quotes and it works great! The correct format is:



form.PAGE2.otherCheckbox.execEvent("change");



Be sure to change to the correct variable names for form, PAGE2, and otherCheckbox in the above expression.



Thanks for your help!