Different initial values with Sliders

More
2 months 2 weeks ago - 2 months 2 weeks ago #170748 by laocoon
laocoon created the topic: Different initial values with Sliders
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: 2 months 2 weeks ago by laocoon.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #170749 by Joffm
Joffm replied the 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

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #170750 by laocoon
laocoon replied the topic: Different initial values with Sliders
Thanks for your tip, but even with just '=' it doesn't work

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #170763 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: laocoon

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #170765 by laocoon
laocoon replied the 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.
Attachments:
Last Edit: 2 months 2 weeks ago by laocoon.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #170768 by tpartner
tpartner replied the 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.
Attachments:
The following user(s) said Thank You: DenisChenu, laocoon

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #170815 by laocoon
laocoon replied the topic: Different initial values with Sliders
Thank you all. Problem solved.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!