Customize the Form Submission Dialog Box.
Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…
- Not yet re-checked
- Classic builder
Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.
Customize the colors of the dialog box that appears after form submission and set it to disappear/fade out after X amount of time.
Step 1
Add the following code to the CSS tab of your page.
.form-process-message .alert{
background-color: #1e88e5;
color: #fafafa;
}
Step 2
Add the following code to the JavaScript tab of the page.
TB.render('component_ID', function(data) {
data.ele.find('.af-form-submit').click(function() {
data.ele.find('.form-process-message .alert').css('display', 'block');
setTimeout(function() {
data.ele.find('.form-process-message .alert').fadeOut("slow");
}, 3000);
});
});
Original Community Post:
Was this page helpful?
Something wrong or missing on this page? Tell us.