Re-direct on form submission

I wanted to ask how you re-direct a user to another page automatically on submission of a public form?

Many Thanks,

Hello @Alex_Stephen,

You can use a general redirection under fd.saved event to redirect a user to a specific URL after form submission. Please find a code sample below. Please use the code in JavaScript editor.

fd.saved(function() {
    window.location.href = 'Site URL';
});
2 Likes

Thats great @mnikitina

Your help is appreciated, Have a great day.

1 Like

Thanks for your help! Your solution worked, finally fixing the issue. The one in PS wiki did not.

Would you be able to explain the difference between fd.saved and fd.spSaved and what dropping (result) from the function call does?

Thanks in advance!

Hello @HypnoToad,

The fd.spSaved() event is used in SharePoint forms and the fd.saved()β€”in Public forms.

Both events occur after the data is submitted.

1 Like