Forums

Creating If-Then-Else structure

EX34Mush 10 Jan, 2017
I have only been using Chronoforms for a couple of hours, but am very impressed so far. With so much potential functionality is not always easy to find an answer, so forgive me if this is really obvious!

I would like to produce a form that will allow me display text boxes, etc. that will depend on the answers to previous questions.I anticipate that this might mean stepping through a sequence of separate screens that will differ depending on the answers selected.

Is this possible with Chronoforms? I do hope so!

Advice on where to find the relevant documentation would be appreciated.
GreyHead 10 Jan, 2017
Hi EX34Mush,

You can do this with JavaScript. For simple show/hide settings you can use the Events tab in the CheckBox, Radio button and Dropdown form elements. This will let you show/hide another form element depending on the input setting. Use Show/Hide Parent with an individual element or Show/Hide with a Container holding several elements.

There are similar options on the Events Sub-tab of the Designer tab.

If it gets more complex than can be handles with half-a dozen or so events on a single element then I would revert to writing custom JavaScript as that can be simpler to maintain.

Bob
EX34Mush 11 Jan, 2017
Thanks Bob, much appreciated, will explore.
Incidentally, I was more than happy to buy you a coffee, but my browser blocked the link because the certificate was out of date. You might want to investigate - or buy another jar yourself!
GreyHead 11 Jan, 2017
Hi EX34Mush,

Thank you for the thought - the link is to paypal.me/BobJanes/5 so I hope that PayPal have updated their certificate.

Bob
EX34Mush 11 Jan, 2017
Might be a problem with my Kaspersky safe browser. Had other PayPal related problems, so have bypassed it on this occasion and seems to work ok.

Hope the coffee keeps you awake for my next query!
GreyHead 11 Jan, 2017
Hi EX34Mush,

Thank you - much needed on these cold winter days.

Bob
This topic is locked and no more replies can be posted.