Check out the LimeSurvey source code on GitHub!

Yes/No with free text enforcement

More
6 years 1 week ago #54976 by fishy123
I have this Yes/No with free text if no is selected (two separate questions). Are there ways to enforce input in the free text field if No is selected?

Please Log in to join the conversation.

More
6 years 1 week ago #54977 by holch
Why don't you make the free text field question mandatory?

Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: fishy123

Please Log in to join the conversation.

More
6 years 2 days ago #55246 by fishy123
It should only be mandatory if the No option is selected.

Please Log in to join the conversation.

More
6 years 2 days ago #55247 by tpartner
Why don't you make it mandatory and use conditions to only display it if "No" is selected?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 2 days ago #55249 by fishy123

tpartner wrote: Why don't you make it mandatory and use conditions to only display it if "No" is selected?

If I say it's mandatory but not display it, wouldn't it still stop the survey from being submitted?

I wasn't aware that you could dynamically display fields like that. Would you know of a good tutorial or source to get me started? I was looking on the documentation wiki and didn't find anything useful on the subject (or I wasn't looking properly).

Please Log in to join the conversation.

More
6 years 2 days ago #55250 by tpartner
The mandatory question will have no affect on the survey if it's hidden by conditions.

Have a look at "Setting Conditions" - docs.limesurvey.org/Setting+conditions&s...tions+for+LimeSurvey

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: fishy123

Please Log in to join the conversation.

More
6 years 2 days ago #55253 by fishy123

tpartner wrote: The mandatory question will have no affect on the survey if it's hidden by conditions.

Have a look at "Setting Conditions" - docs.limesurvey.org/Setting+conditions&s...tions+for+LimeSurvey


Thanks!

To recap, I created my free text and went into the advanced section to hide the question. Is this the proper way to hide it?

I'm previewing the survey and the question I just hid, is being displayed with "{}" besides the question. Should this question be hidden or will it only be hidden when I activate the survey?

Please Log in to join the conversation.

More
6 years 2 days ago #55259 by tpartner

To recap, I created my free text and went into the advanced section to hide the question. Is this the proper way to hide it?

No, use conditions to hide it.



Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in to join the conversation.

More
6 years 2 days ago #55262 by fishy123
Perfect! It's working like a charm!

Please Log in to join the conversation.

More
6 years 1 day ago #55301 by Mazi
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form