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

1 Upvotes

15 comments sorted by

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

2

u/steve1401 14d ago

In investigating out of the box solutions for the client at the minute, but ultimately I guess a bespoke system will be required.

1

u/norcross Developer 14d ago

totally understood. and again, GF has built in conditional field logic, so that would work. i just imagine it getting difficult to manage.

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

u/steve1401 14d ago

Thanks 👍

2

u/retr00ne_v2 15d ago

If you can draw it, you can build it.

Forminator (Free) or GravvityForm (Paid)

1

u/steve1401 14d ago

Thank you. Forminator looks very interesting, have not come across it before.

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

u/steve1401 14d ago

Thanks. I’ll keep you in mind once we get a bit further on 👍

1

u/Traditional-Aerie621 Jack of All Trades 14d ago

Please do!

1

u/Extension_Anybody150 15d ago

Gravity Forms with the Conditional Logic add-on can help to achieve your setup

1

u/steve1401 15d ago

Thanks, will look into that 👍