Welcome to the LimeSurvey Community Forum

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

Random Question

More
9 years 8 months ago #129349 by DenisChenu
Replied by DenisChenu on topic Random Question
Hi Holch,

Strange, because in the test survey i use RANDOM==1 directly for relevance.

RANDOM is always shown, then no issue.

I add some information forNAOK on manual : www.limesurvey.org/manual/Expression_Manager#Usage_of_NAOK
But this surely can be improved.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 8 months ago #129350 by holch
Replied by holch on topic Random Question
By the way: I also don't understand how your code generates the final output shown in the question either. I need a little bit more time to test and check.

What I had done:

Group 1: one question "Q1" with {rand(1,5)} in it.
Group 2: One text display with {Q1} in it. Somehow the numbers shown in both questions can differ.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 8 months ago #129352 by DenisChenu
Replied by DenisChenu on topic Random Question
Group 1 : one question RANDOM: equation question : equation set to {rand(1,5)}

Group 2+3+4 : 4 question near same expet for the code:
Q1: condition RANDOM==1
Q2: condition RANDOM==2
Q3: condition RANDOM==3
Q4: condition RANDOM==4

Look at the logic file ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 8 months ago #129353 by holch
Replied by holch on topic Random Question
Ohhhh man! I thought the "Random==1" code was generated by a code, but it is basically hardcoded.

I will have a closer look at this when I have a little more time.

I think the problem is that I display the result of question Q1 with {Q1} in the question text. That seems to force the random function to be triggered again. But I will investigate a little further.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 8 months ago #129355 by DenisChenu
Replied by DenisChenu on topic Random Question
Maybe because i added it in Group description ?

Random number his : {RANDOM}


?

Must give a try ading it in all question text (but still sure it worked before).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose