//This code will direct users to the Submission Success Landing Page on Save
fd.spSaved(function(result) {
//Add URl Below
result.RedirectUrl =
"https://test-site.com/submissionsuccess.aspx";
});
The code was added outside the fd.spRendered(function(){}) event and inside this event.
Console doesn't display any errors either after submitting the form.
Hi @Margo looks like it does not redirect when used in the webpart. It does redirects if I open it the form from the list. On the site page I'll only receive the submission confirmation.
All is working but for the redirect. I welcome your suggestions as I need to prevent the submitter of the new form from seeing the Edit view upon submit, and I want them to be redirected out of SP to an external URL.
In Plumsail Designer (latest version), a custom button is configured; the two field values are set that trigger a backend Power Automate condition to send emails and render PDF copies of the completed form.
Back in the SPO webpart, the user submits the New form and no redirect happens, rather a gray block that obscures what I assume are the List rows. If I refresh/reload the web browser (Chrome OSX), it loads the new form again. Ideally it would redirect or simply close the web browser tab entirely.
@Margo - I thank you so much for this helpful guidance. Upon closer inspection, the person who designed this SPO page has embedded this for in as an iframe, not via web part as I has first thought, so it involves cross-site URLs. I am assuming the imbedded iframe New Form URL won’t support a redirect within the iframe window.