What function do I use to know when a submit button for a form has successfully submitted the content like a onClick() but something like onSuccess(). I checked all the APIs for $w(button) but didn’t find anything if I’m correct.
Hi Balaram,
In order for you to know when a submit was successful, you need to look at the dataset API (not the submit button API).
the function you are looking for is the dataset event handler: onAfterSave. You can check the documentation here:
Cheers,