default value based on previous awnsers

More
2 years 10 months ago #110588 by jelle
jelle created the topic: default value based on previous awnsers
I'm able to set default awnsers for certain questions based on this article.
www.limesurvey-consulting.com/pre-fillin...xpression-manager-2/ but is this also possible for drop down fields and radiobuttons?

Please Log in to join the conversation.

More
2 years 10 months ago #110621 by tpartner
tpartner replied the topic: default value based on previous awnsers
No, you cannot use Expression Manager to set the defaults in these types of questions. You will need to do it with JavaScript.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 10 months ago #110622 by jelle
jelle replied the topic: default value based on previous awnsers
Ok, thanks for the info. Doing this in javascript, so it has to go in my template?

Please Log in to join the conversation.

More
2 years 10 months ago #110625 by tpartner
tpartner replied the topic: default value based on previous awnsers
You're likely better off to put the script in the question source. That way you have access to Expression Manager variables.

manual.limesurvey.org/Workarounds:_Manip....29_in_LimeSurvey.3F


.

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: jelle

Please Log in to join the conversation.

More
2 years 10 months ago #110626 by jelle
jelle replied the topic: default value based on previous awnsers
great, thanks!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now