Modules dialogs - access elements on submit button

Hi Team,

Do we have any ways to get access to elements on dialog window for validation / api calls before it closes.

I am looking at the use case where we can have form on dialog module with submit button - onclick of the submit button needs to make api calls after getting the values form html elements.

i did look into the documentation in Dialog but no example such.

could you please advise.

Just to confirm, the Submit and Cancel buttons are not added by the content of your page? These are being added by the Connect framework?

If so, then I do not think there is a way to get access to the content before closing aside from what is currently available to you in Javascript events. For instance, you could capture key-up events to do any sort of validation as the user switches through the fields on the page.

1 Like