Welcome to the LimeSurvey Community Forum

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

Parts of the survey are not being saved

  • AIT_Anita
  • AIT_Anita's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140895 by AIT_Anita
Parts of the survey are not being saved was created by AIT_Anita
Dear community,

I am facing a problem. I just tested my survey and often parts of my answers are not saved when the questions are depending on a random number.

I created a random number rand(1, 10) and depending on what number is chosen, one out of 10 questions is shown in the survey. It works perfectly fine. The problem though is that the answers are not saved/ only once one answer was saved. You can see though which random number was created.

Does anyone have an idea why this is happening? It's only three random questions and I put them on seperate sheets.

Thank you,
Anita
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140899 by tpartner
Replied by tpartner on topic Parts of the survey are not being saved
What LimeSurvey version are you using?

Can you attach a sample survey export file (.lss)?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AIT_Anita
  • AIT_Anita's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago - 7 years 6 months ago #140903 by AIT_Anita
Replied by AIT_Anita on topic Parts of the survey are not being saved
Hi tpartner,

I'm using LimeSurvey Version 2.50+.

Attached you'll find the .lss file. The problems are occuring in Seite 7 (Mobilitätsszenarien 1-3).

Greetings,
Anita

File Attachment:

File Name: limesurvey...6464.lss
File Size:272 KB
Last edit: 7 years 6 months ago by AIT_Anita. Reason: page numbers were wrong
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140908 by tpartner
Replied by tpartner on topic Parts of the survey are not being saved
Try replacing your equations with something like below. I think those equation questions are being fired more than once and this will ensure that their values do not get changed.

Code:
{if(is_empty(randnumber), rand(1,10), randnumber)}
Code:
{if(is_empty(randnumber1), rand(1,10), randnumber1)}
Code:
{if(is_empty(randnumber2), rand(1,10), randnumber2)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AIT_Anita
  • AIT_Anita's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140928 by AIT_Anita
Replied by AIT_Anita on topic Parts of the survey are not being saved
When I try this, the questions are not appearing anymore.
Do I have to change something in the questions' settings?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140930 by tpartner
Replied by tpartner on topic Parts of the survey are not being saved

When I try this, the questions are not appearing anymore.

Try the attached modified survey. I have moved the 3 affected groups to the start of the survey for testing.

File Attachment:

File Name: limesurvey...6464.lss
File Size:283 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AIT_Anita
  • AIT_Anita's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140936 by AIT_Anita
Replied by AIT_Anita on topic Parts of the survey are not being saved
Now it's working. Thanks a lot for your help!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose