Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access the Cancel button on a Form?

Kathleen Janiszewski
Contributor
December 12, 2023

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

2 answers

0 votes
Alex Medved _ConfiForms_
Community Champion
December 19, 2023

Hi @Kathleen Janiszewski 

You can set up an IFTTT to execute onError that will delete a record

Alex

0 votes
Kathleen Janiszewski
Contributor
December 12, 2023

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events