Expand my Community achievements bar.

Calling one action from another

Avatar

Level 1

I have a two-page form (actually 1 form w/ 2 subforms), and each page has a Reset Form button. Using Action Builder, I need to script the same multi-step action for both buttons. Is there a way for me to write it once on page 1, then call it from the ResetButton2.click action on page 2?

Since both Reset Form buttons will be repeating the actions taken in the form1.docReady action, can I somehow call form1.docReady from the ResetButton.click action?

Is there a way to do this using Javascript?

Thanks

1 Reply

Avatar

Level 10

Hi,

You can "click" a button remotely using JavaScript. However I don't think you will be able to achieve this using Action Builder.

For example JavaScript in the button on page1 will fire the script in the click event of the button on page2:

page2.ResetButton2.execEvent("click");

The exact relative reference will depend on your form's structure.

Hope that helps,

Niall