Does anyone know how to access the Cancel button on a form? For the Save button, it's save-cf-button, as in the following code:
AJS.$('#' + formId).find('.save-cf-btn').click(function() {
alert("saving FORM SUBMISSION "+formId);
});
I've tried .cancel-cf-btn and .close-cf-btn, but neither works.
Alternatively, is there a way to access the form submission error?
Why do I need this? Because the user wants the ConfiForm entry deleted after a new page is created. I can delete old entries with the IFTTT macro, and the current entry by matching the [entry.id]. However, when the user has an error, then cancels the form submission, the ConfiForms entry remains.
Any help is greatly appreciated!
Thank you in advance.
-Kathleen J
My colleague found the answer: .button-panel-cancel-link
Why are they so different?!?
At least it works now. Hope this helps someone else out there!
Thanks again.
-Kathleen J.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.