Question: How to create conditional thankyou page redirect logic?
In the custom type of form, we have a feature to change thankyou page redirect depending on ‘IF’ State conditions. Follow the steps for guidance –
Step 1. Log in to your Shopify store and navigate to Apps > Form Builder.
Step 2. Create or edit a custom form.
Step 3. Navigate to Form Settings -> Conditions -> Conditional Redirect
Step 4. Click on the “Add New Rule” button to create a new rule for conditional redirects.
You can create a rule for the following conditions
- First Name
- Last Name
And apply the following check
- Equals To
- Greater Than
- Less Than
- Has Value
Step 5. After creating a rule, click on the “Save” button to save the settings.
If you want to redirect all customers whose first name is John to a different thank you page. So you can create a rule as follows
If First Name Is Equals To Value John Then Redirect URL https://yourstore/thankyoupage-for-john