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