Form URL Redirect

Hi

The redirect URL set on form is not working when using the form inside a modal view, however, I noticed that if the modal view is visible and website published, the form submission goes to the redirect URL.

How to get through this and make the redirect URL working even if the form is inside the modal view?

Here’s the script I am using for the modal view, which I got from other topics:

<script type="text/javascript">

$(document).ready(function () {
  $('.button').click(function () {
    $('.modal-background').fadeIn(100);
    return false;
  });
  $('.close-modal').click(function () {
    $('.modal-background').fadeOut(100);
    return false;
  });
  if (location.hash == '#show-modal') {
    $('.modal-background').fadeIn();
  }
});

</script>

Thanks

Hi @Halim_Boumadani, thanks for the post. So that we can see how your form is setup in your modal, and check out the behavior of the site. Could you post a read-only link to your site, and also publish your site, so we can see how it runs in published mode.

More information about read-only links:

Learn web design with free video courses and tutorials | Webflow University

Cheers, Dave :smile: