Invoking a click event from another button

Avatar

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
View profile
cyan_studios
Level 2

11-08-2008

I have a button that concatenates data to prepare it for submission. I have another HTTP Submit button in my form for that data.



I would like to cause the concatenating button to do what it's doing, and then subsequently force a click event of my HTTP Submit button or just move the functionality of the HTTTP Submit button to my concatenating button.



Either works, but it would be nice to know how to chain events like that.

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

11-08-2008

In the button that the user clicks you can add this code:



SubmitButtonName.execEvent("click");

Avatar

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
View profile
cyan_studios
Level 2

11-08-2008

That did it. Didn't know the syntax.

Thank you so much Paul.