I’ve been looking at allowing the user to change the redirect page for a form with a content picker on a page (defaulting back to the redirect set on the form if not set).
I found the field redirectToPageId to which I can pass a GUID in of the page (as explained in the docs). Unfortunately, I can’t get this to work - it always redirects the user to the redirect set in the default form workflow.
Where redirectPage is a Guid? driven by a content picker. I’ve tried passing in a GUID and an integer - neither work. I also tried the redirectUrl param (just in case!)
Have I found a bug here or am I doing something daft?
I have just tried this in v13, v16 and v17 versions and I’m seeing the correct functionality when passing a GUID…
What version are you using? And are you setting any other redirects with a FormsRedirectAfterFormSubmitUrl item in the HttpContext? (as documented here Extending | Umbraco Forms )
Sharing my resolution, should anyone else find themselves in a similar position!
I had a custom theme for the form and I was missing the hidden field for the redirect from my Render.cshtml … No idea where it went, but popping this back in did the trick.
@Html.HiddenFor(x => Model.RedirectToPageId, new { id = (string?)null })