Miko. eCommerce Template

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Redirect depending on answers in form

1 month 2 weeks ago #1

  • Dimitri's Avatar
  • Dimitri
  • Posts: 4
Dear all,

I am looking for best practice example where I can redirect the user to different pages, depending on answer of the user. For example, I ask several questions over checkboxes. In code I program few scenarios like:
If answers in checkboxes are A and A, user redirected to page A on Submit.
If answers are B and B, user redirected to page B.
If answers are A and B, user redurected to page C, etc.

Conditional logic is not possible here.

You provide PHP and JS on Submit. Can you give guidance or example of code for them for such conditional redirection?

Best, Dimitri

1 month 2 weeks ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Hello,

Thank you for contacting us!

To do this, you need to use conditional logic
and several submit buttons (with different redirect settings)

Best Regards,
Vyacheslav, Balbooa Support Team

1 month 2 weeks ago #3

  • Dimitri's Avatar
  • Dimitri
  • Posts: 4
But I have already replied that "Conditional logic is not possible here."))) Just because I have 30-50 combinations of answers at the end, if I ask 5 questions with 2 possibilities each, I will get 32 combinations already.

I am searching for more flexible way to embed formula in JS or php. Any suggestions here?

Best, Dimitri

1 month 2 weeks ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 16531
Unfortunately, there is no such possibility.

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum