Jump to content
  • 0

Destination after record submit - Go to new page


Holger

Question

After the user updated the Submit Form, I simply want to redirect to a new page and at the same time close the existing window.  I updated the URL in Destination Option "Destination after record submit - Go to new page". After I submit the page, the new page loads, but only appears in the size as the original submission form. I just want to see the redirected page in full view mode after the user submitted the form. Appreciate the communities help.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 12/12/2017 at 9:42 AM, Holger said:

After the user updated the Submit Form, I simply want to redirect to a new page and at the same time close the existing window.  I updated the URL in Destination Option "Destination after record submit - Go to new page". After I submit the page, the new page loads, but only appears in the size as the original submission form. I just want to see the redirected page in full view mode after the user submitted the form. Appreciate the communities help.

Try to redirect user to another URL and close the window on submit, You may try using the following code in the footer of the datapage:

<script>
document.getElementById("caspioform").onsubmit=function()
{
window.open("URL");
window.close();
  }
</script>

Don't forget to specify your URL instead of URL.

Cheers!

Link to comment
Share on other sites

  • 0
On 12/11/2017 at 11:42 PM, Holger said:

After the user updated the Submit Form, I simply want to redirect to a new page and at the same time close the existing window.  I updated the URL in Destination Option "Destination after record submit - Go to new page". After I submit the page, the new page loads, but only appears in the size as the original submission form. I just want to see the redirected page in full view mode after the user submitted the form. Appreciate the communities help.

Holger,

You can try to redirect the end user at a given time and showing a display message that the submission is successful. Try to place this code below the display message in the  Destination after record submit:

 

setTimeout(function () {
   window.location.href = "https://www.yoururl.com";
}, 5000); 
</script>

-Franchiser-

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...