Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Invoking a click event from another button

Avatar

Level 2
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.
2 Replies

Avatar

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



SubmitButtonName.execEvent("click");

Avatar

Level 2
That did it. Didn't know the syntax.

Thank you so much Paul.