Welcome to the LimeSurvey Community Forum

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

Change from answer options in random order to non-random order in the LSG-file

  • MattiasL
  • MattiasL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 days ago #252605 by MattiasL
Please help us help you and fill where relevant:
Your LimeSurvey version:  LimeSurvey Cloud  Version 3.28.76
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: fruity
==================
Hi!

I screwed up by creating hundreds of questions where the answer options are in random order (answer options are in List (radio) - Bootstrap Buttons format). I want to change so that the answer option for each question is the same order for all questions. It would take a long time and lead to potential errors in the survey due to potential mistakes if I would manually go into each question and click Display -> Random Order -> No. Is there a way to download the survey LSG file and do a simple search and replace instead? Or perhaps there is another efficient way to solve my problem?

Thank you in advance!
Mattias L

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 days ago #252606 by Joffm
Hi,
in such cases the first answer is:
Did you try in a small test survey?

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: MattiasL

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 days ago #252608 by DenisChenu
> I want to change so that the answer option for each question is the same order for all questions.

If i don't make error : it's the behaviour of 5.X if answers have same code.

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.
The following user(s) said Thank You: MattiasL

Please Log in to join the conversation.

  • MattiasL
  • MattiasL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 days ago #252611 by MattiasL
Thanks! I found it using a smaller test survey as you suggested. I could simply search and replace throughout entire question group LSG-file by searching:
"<attribute><![CDATA[random_order]]></attribute>
<value><![CDATA[1]]></value>"

and replace all with:
<attribute><![CDATA[random_order]]></attribute>
<value><![CDATA[0]]></value>

Thanks again!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose