Welcome to the LimeSurvey Community Forum

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

Different initial values with Sliders

More
7 years 2 months ago - 7 years 2 months ago #170748 by laocoon
Hello together,

I want to assign different initial values to sliders in a survey.

The first slider should have as the initial value the value of the first slider of the previous question,
the second slider should have as the initial value the value of the second slider of the previous question and so on.

For example:
Q1_SQ001 was set to 20
Q1_SQ002 was set to 30

The initial value of the sliders from the next question should be:
Q2_SQ001 = 20
Q2_SQ002 = 30

I tried the following with the initial value field:
(Q2_SQ001.value==Q1_SQ001.value), (Q2_SQ002.value==Q1_SQ002.value)

Unfortunately this didn't work.

Is it possible to do this in LimeSurvey?

Thanks a lot in advance!
Last edit: 7 years 2 months ago by laocoon.
The topic has been locked.
More
7 years 2 months ago #170749 by Joffm
Hi,
without knowing if your solution will work,

there is an error in the equation

Not Q2_SQ001.value==Q1_SQ001.value, but Q2_SQ001.value=Q1_SQ001.value

"==" compares, "=" assigns.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
7 years 2 months ago #170750 by laocoon
Thanks for your tip, but even with just '=' it doesn't work
The topic has been locked.
More
7 years 2 months ago #170763 by DenisChenu
Why not use default value ?
The 2 question are on different page ?
If yes : set default value to {Q1_SQ001} and {Q1_SQ002}

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 following user(s) said Thank You: laocoon
The topic has been locked.
More
7 years 2 months ago - 7 years 2 months ago #170765 by laocoon
Hey,
thanks for your answer. I'm sorry, but I'm not fully getting it. I attached an minimal example and here is an link to the current (minimal) survey for explanation:

Minimal example Survey

what do you mean with default value? I'm not finding it.
Last edit: 7 years 2 months ago by laocoon.
The topic has been locked.
More
7 years 2 months ago #170768 by tpartner
Here:


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, laocoon
The topic has been locked.
More
7 years 2 months ago #170815 by laocoon
Thank you all. Problem solved.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose