- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Randomize a second answer possibility.
- thamires.costa
- Topic Author
- Offline
- New Member
Less
More
1 year 8 months ago #231306
by thamires.costa
Randomize a second answer possibility. was created by thamires.costa
Your LimeSurvey version: Version 5.3.6+220321Hey guys!
I need some help here.
In a list radio I need a fixed answer option to always appear and I need to randomize a second answer possibility among 27 options.
I'm trying to do this with the filter array but I'm not getting it, can you help me?
Also, I have another question: how can I put the maximum number of characters in an "others" option of a radio list question.
Thank you so much!
Here the lss file
I need some help here.
In a list radio I need a fixed answer option to always appear and I need to randomize a second answer possibility among 27 options.
I'm trying to do this with the filter array but I'm not getting it, can you help me?
Also, I have another question: how can I put the maximum number of characters in an "others" option of a radio list question.
Thank you so much!
Here the lss file
Attachments:
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
1 year 8 months ago #231310
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomize a second answer possibility.
Hi,
1. There is a typo in your creation of the random number (missing comma)
2. By an array filter you show the "selected" subquestions in a next question. You do not select you only filter the display.
To use the multiple question as an array filter, you have to set the selected answer by an equation
Like:
{multiple_1=if(randnumber==1,"Y","")}
{multiple_2=if(randnumber==2,"Y","")}
{multiple_3=if(randnumber=,"Y","")}
...
{multiple_27=if(randnumber==27,"Y","")}
3. To limit the input in the "other" you have to validate.
Like strlen(QCode_other)<10
Joffm
1. There is a typo in your creation of the random number (missing comma)
2. By an array filter you show the "selected" subquestions in a next question. You do not select you only filter the display.
To use the multiple question as an array filter, you have to set the selected answer by an equation
Like:
{multiple_1=if(randnumber==1,"Y","")}
{multiple_2=if(randnumber==2,"Y","")}
{multiple_3=if(randnumber=,"Y","")}
...
{multiple_27=if(randnumber==27,"Y","")}
3. To limit the input in the "other" you have to validate.
Like strlen(QCode_other)<10
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- thamires.costa
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
1 year 8 months ago #231321
by thamires.costa
Replied by thamires.costa on topic Randomize a second answer possibility.
Joffm!
You are amazing! Thank you so much!
You are amazing! Thank you so much!
Please Log in to join the conversation.
- thamires.costa
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
1 year 8 months ago #231341
by thamires.costa
Replied by thamires.costa on topic Randomize a second answer possibility.
Just one more question: Would I be able to configure the two radio list response options so that the two are randomized in this way?
And in that case, I would need them not to be repeated.
And in that case, I would need them not to be repeated.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
1 year 8 months ago #231347
by Joffm
Once you display
Option 0
Option 4
and then
Option 4
Option 0
Do it in the settings.
There is only one question.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomize a second answer possibility.
Meaning?so that the two are randomized
Once you display
Option 0
Option 4
and then
Option 4
Option 0
Do it in the settings.
When or what repdeated?I would need them not to be repeated.
There is only one question.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.