Welcome to the LimeSurvey Community Forum

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

Different initial values with Sliders

  • laocoon
  • laocoon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
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!
Last edit: 5 years 9 months ago by laocoon.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 9 months ago #170749 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • laocoon
  • laocoon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 9 months ago #170763 by DenisChenu
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}

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
  • laocoon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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.
Last edit: 5 years 9 months ago by laocoon.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 9 months ago #170768 by tpartner
Replied by tpartner on topic Different initial values with Sliders
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.
  • laocoon
  • laocoon's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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.

Lime-years ahead

Online-surveys for every purse and purpose