Redirect not working

3 replies · opened Apr 19, 2021

FfelipecpApr 19, 2021

I have a problem with the redirection. The email is sending ok.

Hi, I have read the documentation regarding how to redirect the page after submit, but is not working for me. I have also tried out the solution in other tickets with the same subject, but Im not in luck.

I have no errors in console and I am using SMTP to send the email, which is working fine.

1- I tried adding the data-redirect to the "form-widget" div:
div class="form-widget" data-redirect="https://www.foxsys.com.uy/gracias_cotizacion.php"

2-And I also tried using the event on form submit:
jQuery('#budget-form').on( 'formSubmitSuccess', function(){
window.location.href = '../gracias_cotizacion.php';
console.log('success');
});

Hope you can answer asap, thanks

FfelipecpApr 19, 2021

I still need to use the ajax validation, I only need to add the redirection if the submit is successfull.

SSemicolon WebSTAFFApr 19, 2021

Hello,

We have just checked this out and it appears to be working fine for us. You will need to remove the .customjs Class from the .form-widget DIV (see attached).

This will automatically fix the issue. Hope this Helps!

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

FfelipecpApr 19, 2021

Thanks a lot, it is working fine now indeed. Thanks

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