- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple Answers for Textarea Question
- AJones01
- Topic Author
- Offline
- New Member
Less
More
5 years 4 months ago #179864
by AJones01
Multiple Answers for Textarea Question was created by AJones01
Greetings,
I'm on a very strict deadline (just got told about a project today) to create a form and I don't have much time to research what I need and will have to ask. I need one of the questions that is a text area that can allow me to use multiple answer options. This must be done as a textbox as the user should already know one of the options.
For example one of the following options is acceptable:
- Red33
- Beef22
- Blue454
- C238
Any other entries won't be allowed. Similar to that of a password.
I'm on a very strict deadline (just got told about a project today) to create a form and I don't have much time to research what I need and will have to ask. I need one of the questions that is a text area that can allow me to use multiple answer options. This must be done as a textbox as the user should already know one of the options.
For example one of the following options is acceptable:
- Red33
- Beef22
- Blue454
- C238
Any other entries won't be allowed. Similar to that of a password.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13804
- Thank you received: 2519
5 years 4 months ago - 5 years 4 months ago #179869
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Multiple Answers for Textarea Question
Yes , and ? What is your question ?
Maybe you need a link to manual ?
Think this one have your answer : manual.limesurvey.org/Expression_Manager
Else
«I need one of the questions that is a text area that can allow me to use multiple answer options.» I don't undertsant : it's a textarea or multiple textarea
Maybe you need a link to manual ?
Think this one have your answer : manual.limesurvey.org/Expression_Manager
Else
«I need one of the questions that is a text area that can allow me to use multiple answer options.» I don't undertsant : it's a textarea or multiple textarea
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 4 months ago by DenisChenu.
The following user(s) said Thank You: AJones01
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13173
- Thank you received: 4052
5 years 4 months ago #179877
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Answers for Textarea Question
Hi,
what I understand is:
The respondent enters a text into a textbox (e.g. "short text"), but only some options are allowed.
Well, you can validate.
Simple: something like (Q1=="Red33") OR (Q1=="Beef22") OR ...
But what if the respondent enters "RED33" or "Red 33".
Then the expression has to be more sophisticated.
Something like:
(strtoupper(str_replace(" ","",Q1))=="RED33") OR ...
Maybe I misunderstood; then please send an example (*.lss)
Regards
Joffm
what I understand is:
The respondent enters a text into a textbox (e.g. "short text"), but only some options are allowed.
Well, you can validate.
Simple: something like (Q1=="Red33") OR (Q1=="Beef22") OR ...
But what if the respondent enters "RED33" or "Red 33".
Then the expression has to be more sophisticated.
Something like:
(strtoupper(str_replace(" ","",Q1))=="RED33") OR ...
Maybe I misunderstood; then please send an example (*.lss)
Regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: AJones01
The topic has been locked.
- AJones01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 4 months ago #179898
by AJones01
Replied by AJones01 on topic Multiple Answers for Textarea Question
Thank you, the first sample provided will work for this case. I do need to entries to be "As Is".
The topic has been locked.