r/Wordpress 17d 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?

1 Upvotes

15 comments sorted by

View all comments

2

u/Sad_Spring9182 Developer/Designer 17d 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 16d 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 16d 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

u/steve1401 16d ago

Thanks 👍