- Posts: 26
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Different initial values with Sliders
- laocoon
- Topic Author
- Offline
- Junior Member
Less
More
5 years 9 months ago - 5 years 9 months ago #170748
by laocoon
Different initial values with Sliders was created 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!
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: 5 years 9 months ago by laocoon.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
5 years 9 months ago #170749
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Different initial values with Sliders
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
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.
- laocoon
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
5 years 9 months ago #170750
by laocoon
Replied by laocoon on topic Different initial values with Sliders
Thanks for your tip, but even with just '=' it doesn't work
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 9 months ago #170763
by DenisChenu
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.
Replied by DenisChenu on topic Different initial values with Sliders
Why not use default value ?
The 2 question are on different page ?
If yes : set default value to {Q1_SQ001} and {Q1_SQ002}
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: laocoon
The topic has been locked.
- laocoon
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
5 years 9 months ago - 5 years 9 months ago #170765
by laocoon
Replied by laocoon on topic Different initial values with Sliders
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.
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.
Attachments:
Last edit: 5 years 9 months ago by laocoon.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 9 months ago #170768
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Different initial values with Sliders
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: DenisChenu, laocoon
The topic has been locked.
- laocoon
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
5 years 9 months ago #170815
by laocoon
Replied by laocoon on topic Different initial values with Sliders
Thank you all. Problem solved.
The topic has been locked.