- Posts: 9
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Hide (exclude) an answer option if array field is empty - How?
- mbates
- Topic Author
- Offline
- New Member
Less
More
4 years 10 months ago #186057
by mbates
Hide (exclude) an answer option if array field is empty - How? was created by mbates
I have a ranking question with answer options that are populated from an array(texts) based on prior questions. For example, the answer options are:
{AR_Y001_X001}
{AR_Y001_X002}
{AR_Y001_X003}
There are circumstances where one of these array fields could be empty. What is the best way to hide an answer option if the field is empty? Otherwise, I am stuck with showing a blank answer option.
Thanks in advance for any advice.
{AR_Y001_X001}
{AR_Y001_X002}
{AR_Y001_X003}
There are circumstances where one of these array fields could be empty. What is the best way to hide an answer option if the field is empty? Otherwise, I am stuck with showing a blank answer option.
Thanks in advance for any advice.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
4 years 10 months ago #186058
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Hide (exclude) an answer option if array field is empty - How?
Hi, mbates,
in scenarios like this I like to include a hidden question of type "multiple choice".
Here I check according to the answers in the array ("Y" = filled, "" = empty) by an equation.
Now I use this hidden question as array filter for my ranking question.
Because there are used only built-in features it is easy to understand, easy to implement and extendable without knowledge of anything else than LS basics.
To be honest: That is what I know, LS basics.
and an example
Joffm
in scenarios like this I like to include a hidden question of type "multiple choice".
Here I check according to the answers in the array ("Y" = filled, "" = empty) by an equation.
Now I use this hidden question as array filter for my ranking question.
Because there are used only built-in features it is easy to understand, easy to implement and extendable without knowledge of anything else than LS basics.
To be honest: That is what I know, LS basics.
and an example
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: mbates
The topic has been locked.
- mbates
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
4 years 9 months ago #186079
by mbates
Replied by mbates on topic Hide (exclude) an answer option if array field is empty - How?
Perfect! Worked perfectly. Thank you, Sir.
The topic has been locked.