Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Randomize a second answer possibility.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231310 by Joffm
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==3,"Y","")}
...
{multiple_27=if(randnumber==27,"Y","")}

3. To limit the input in the "other" you have to validate.
Like strlen(QCode_other)<10

File Attachment:

File Name: limesurvey...5337.lss
File Size:59 KB


Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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!

Please Log in to join the conversation.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231347 by Joffm
Replied by Joffm on topic Randomize a second answer possibility.

so that the two are randomized

Meaning?
Once you display
Option 0
Option 4
and then
Option 4
Option 0

Do it in the settings.

I would need them not to be repeated.

When or what repdeated?
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.

Lime-years ahead

Online-surveys for every purse and purpose