Highlighted

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

Avatar

Guest

17-09-2008

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!

Replies

Highlighted

Avatar

Guest

17-09-2008

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!).
Highlighted

_Frederik-Jan_R

18-09-2008

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.
Highlighted

Avatar

Guest

19-09-2008

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!