Welcome to the LimeSurvey Community Forum

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

The sub-questions are changing order.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #226631 by thamires.costa
The sub-questions are changing order. was created by thamires.costa
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.19.1+191009 
Own server or LimeSurvey hosting:
Survey theme/template:
==================Hi!!

I have a problem with the question block: PARTISAN SOCIAL DISTANCE

When I answer the questions that are array:
distanceoption1 and distanceoption2
The sub-questions are changing order.

 

File Attachment:

File Name: limesurvey...8648.lsq
File Size:7 KB


Can you help me to solve this problem?

Thanks!!!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #226632 by Joffm
Replied by Joffm on topic The sub-questions are changing order.
Please, never send lsq nor lsg files.
Only lss exports of the relevant questions.
Copy the survey, remove everything not relevant and send this as lss.

Joffm

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

Please Log in to join the conversation.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #226633 by thamires.costa
Replied by thamires.costa on topic The sub-questions are changing order.
Sorry for the mistake! here it is in iss
only with relevant questions.


 

File Attachment:

File Name: limesurvey... (1).lss
File Size:88 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago - 3 years 1 month ago #226642 by Joffm
Replied by Joffm on topic The sub-questions are changing order.
Hi,
I do not see that the subquestions change the order.
I see that the questions are changed.

But this is obvious.
You know that the function "rand(x,y)" is triggered each time a click occurs on the page where there is this function.
The same behaviour as Excel.
Each click in the array triggers "randpsd" and the respective array is displayed.
Therefore we use this to generate a random number "{if(is_empty(randomnumber),rand(1,2),randomnumber)}"

So, either you revise your equation "randpsd" like
{if(condicao1 == condicao2,if(is_empty(randpsd),rand(1,2),randpsd),0)}

or you put the equation block into a separate group.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 1 month ago by Joffm.

Please Log in to join the conversation.

  • thamires.costa
  • thamires.costa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #226671 by thamires.costa
Replied by thamires.costa on topic The sub-questions are changing order.
it worked out!

you are awesome

Thanks!!!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose