How to add a confirm popup to a submit button?

Step-by-Step Guide: Add a JavaScript Confirm Dialog to Your Submit Button

Overview

Learn how to implement a confirmation dialog for form submissions. Enable the HTML Attributes behavior in your button settings and add a specific onclick attribute. This will display a "Are you sure?" prompt to users before the form is submitted, preventing accidental submissions.

1- Open your button settings.

2- Enable the HTML Attributes behavior.

3- Add the onClick attribute:

onclick=return confirm('Are you sure you want to submit?')

Now when you try to submit the form with that button:

Comments:

You need to login to be able to post a comment.