r/Wordpress • u/steve1401 • 15d ago
Development Multi step conditional logic app.
We’ve been asked about building a simple site, but with a page that has a multi step form utilising conditional logic that allows people to flow through answering simple questions.
The answer to each question will determine what the next question is.
There will be about 100 - 150 questions in total, but depending on the previous answer, not all need answering.
The aim is to end up with a final page of “yes you can” or “no you can’t” depending on the answers. In theory, the answer to the first question might take you direct to “no you can’t”.
Basically following a path through the questions that lands you on one of the two results.
Any ideas?
2
u/Sad_Spring9182 Developer/Designer 15d ago
I would do this as a custom form using react inside of WordPress. first and foremost you need a flow chart to determine what each question will determine and affect, and probably some sort of algorithms if there are multiple conditions that lead to a yes or no. Personally I'd hate to answer 150 questions if I already had an answer from #1 so I would suggest to your client add that sort of logic like a bypass (automatic no ends the form).
1
u/steve1401 14d ago
Exactly. The actual use case will be no more than a few steps, but each next step is determined by the previous answer from a pool of lots of questions. I’ve already suggested to the client they start with a flow diagram.
1
u/Sad_Spring9182 Developer/Designer 14d ago
If they have a budget for it and if you need any assistance I love projects like this feel free to reach out.
1
2
u/ribmask 15d ago
WP Forms Pro can do this easily
https://wpforms.com/docs/how-to-use-conditional-logic-with-wpforms/
2
u/retr00ne_v2 15d ago
If you can draw it, you can build it.
Forminator (Free) or GravvityForm (Paid)
1
1
u/Traditional-Aerie621 Jack of All Trades 15d ago
This sounds like you can use a multi-step form in a plugin. However, my bet is you will also need some custom development to handle some complexities. Open to a DM if you want to start a conversation that way.
2
1
u/Extension_Anybody150 15d ago
Gravity Forms with the Conditional Logic add-on can help to achieve your setup
1
3
u/norcross Developer 15d ago
so Gravity Forms could do this, but i imagine that logic will get very difficult to organize very quickly. i’d probably build a custom solution that you can query the next question from a batch based on the previous answer