Don't want text input box

webmasterancilla 22 Jul, 2015
http://70.91.247.60/sjchf.org/index.php?option=com_chronoforms5&chronoform=grantapp3

If someone checks the No box we have the subsequent questions and the Submit button disappear so they get the message that they can't proceed.
In the Layout Designer I used the Events tab of the question Elements to make this behavior happen. I chose a text box to deliver my response to the wrong answer, but how do I get rid of the input area?

Thanks,
Mike
GreyHead 23 Jul, 2015
Hi Mike,

The first thing is not to use pairs of check-boxes for yes/no questions as both boxes can be checked. Either use a single checkbox, or - probably better a radio button with yes/no options.

Then use the events to Show when the value = Yes and Hide when the value = Yes

Bob
webmasterancilla 23 Jul, 2015
Thanks for the steer toward the radio buttons, Bob. That double check was on my list to deal with next.

But what can I use for the answer? I just need text, but if I use Custom I don't see a way I can hide then show it.
I get input elements I don't want to show.
GreyHead 23 Jul, 2015
Answer
Hi Mike,

Sorry, I missed the text part of the question. Provided that the element you want to show/hide has an id you can use the events in the same way. If you use the Pure Code option in a Custom Code element include <div id='my_id' >. . .</div>

Bob
webmasterancilla 23 Jul, 2015
Oh, but here's my next question.
How do I hide the answer if I use Custom? I don't have the option to load it hidden.
GreyHead 23 Jul, 2015
Hi Mike
<div id='my_id' style='display: none;' >. . .</div>

Or put the Custom Code element in a Container if you prefer the 'normal' settings.

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