Hi @krisdigital,
I hope you are doing well today!
You can achieve this by choosing Redirect user to a URL in After Submission Behavior and adding conditions.
Please check the following documentation for more information.
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#after-submission-behavior
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#after-submission-conditions
Kind regards,
Zafer
Hey Zafer,
Thanks for your answer.
However, how can I set a combination of IF/ELSE/OR conditions?
IF Answer 2B => landing page 1
OR
IF Answer 2A + Answer 1B => landing page 1
Hello @krisdigital !
I hope you’re having a great week!
The conditions added in the Submission Behavior section are already handled as an OR and from top to bottom. This means that the first matching behaviour will be executed when it comes to redirection rules (redirection stops the processing of further rules).
We can assist with setting some examples up – please export the form and share with us using the following steps. Please also share 2-3 exampled of rules you’d like to set up, along with the destination pages (can be dummy ones too).
How to export: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export
After exporting, please share the code using a service such as https://pastebin.com (free)
Please always make sure to use such service to share the code and don’t post the code here directly as it will most likely be unusable.
Best regards,
Pawel
Hey Pawel,
Thanks.
Here’s the code: https://pastebin.com/WKgHG7MM
Here’s my use case with all the required conditions to redirect my visitors to the right URL based on their answers to the 10 questions:
https://docs.google.com/spreadsheets/d/1DhbUUdhI8a-dWcp3mNh5zkIy_4cRp1q7J4yUfjnZuyk/edit?usp=sharing
Please let me know how I can set that up in forminator? Thanks!
Hello there @krisdigital
Please test the form attached here: https://pastebin.com/Msyg2Y3Q
I simply edited your form and added one more condition in the “after submission” options. So if “1 – B” then redirect to XX, if “1 – A” and “2 – D” then redirect to YY.
Please keep in mind that I removed all email notifications from that form, so I could safely test. 🙂
Take care,
Dimitris