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

Avatar

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

17-09-2008

How about the change event.

Avatar

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

Avatar

Avatar
Level 2
_Frederik-Jan_R
Level 2

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
_Frederik-Jan_R
Level 2

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile
_Frederik-Jan_R
Level 2

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.

Avatar

18-09-2008

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

Avatar

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!