You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a multipage form and the last page is conditionally shown based on earlier inputs then the redirect URL parameters (eg redirectUrl: form.getRedirectEntry.url ~ '?uid={uid}', only get populated and uid parsed if the submission comes from the last page in the form
Steps to reproduce
Create a form with 3 pages
Add option to page 1
Conditionally show page 3 based on page 1 question
If page 3 is never shown {uid} isn't swapped out
Form settings
Multi-page form: Yes
Submission Method: Page Reload
Client-side Validation: Yes
Custom Form Templates: No
Craft CMS version
5.6.6
Plugin version
3.0.20
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered:
This is correct behaviour (for now), mostly because otherwise we evaluate things too early. What if the redirect URL contained field values on the nth page?
More importantly, sometimes you don't want to expose the resolved redirect URL before the form is complete, which would be typical of a gated form, which requires users to fill out a form before discovering the redirect - whatever that may be.
But in your scenario when there's a conditional evaluation involved, it's indeed a little trickier. Looking into it!
Describe the bug
If I have a multipage form and the last page is conditionally shown based on earlier inputs then the redirect URL parameters (eg
redirectUrl: form.getRedirectEntry.url ~ '?uid={uid}',
only get populated anduid
parsed if the submission comes from the last page in the formSteps to reproduce
{uid}
isn't swapped outForm settings
Craft CMS version
5.6.6
Plugin version
3.0.20
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered: