I Need to open a jquery modal instead of "success" alert on form submission.

3 replies · opened Sep 20, 2021

SSJG1911Sep 20, 2021

Hi, I need some assistance on form submission.
I Need to redirect to a page or open a modal instead of the "success" alert on form submission.

For example: on my page right now if you fill the contact form and "send" you will get a green color alert at the top to the page.

linK: https://skilleasyacademy.com/#section-contact

I want to redirect to a page instead of the alert or after the alert -
link: http://test.skilleasyacademy.com/modal-onload-subscribe%20-%20Copy.html

I have gone through your Forms documentation for forms, as well as tried some option to edit the include/form.php

I am unable to do this, please help me resolve this. This is a deal breaker for me.

SSemicolon WebSTAFFSep 20, 2021

Hello,

Both of these Solutions are absolutely possible with our Advanced Forms Functionality:

  1. To redirect without the Success Notification, simply add the data-alert-type="false" to the .form-widget DIV and then add the data-redirect="https://your-website.com/thank-you.html" Attribute:
    [ch_pre][/ch_pre]

  2. To display Custom Modals, add the data-alert-type="false" to the .form-widget DIV:
    [ch_pre][/ch_pre]

and then use the following JS Codes to trigger your Custom JS Code to display the Modal:
[ch_pre type="js"]jQuery('#template-contactform').on( 'formSubmitSuccess', function(){
// Your JS Codes here to display the Modal
});[/ch_pre]

You can find more Documentation on this here: http://docs.semicolonweb.com/docs/forms/alerts/ .

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SSJG1911Sep 21, 2021

Thank you so much! I'm recommending Canvas to all my friends and clients!

SSemicolon WebSTAFFSep 21, 2021

Hello,

Very Happy to Help! :)

That is very very kind of you! We Really Appreciate it! :)

Please do let us know if we can help you with anything else.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard