Welcome, Guest
Username: Password: Remember me

TOPIC: default value based on previous awnsers

default value based on previous awnsers 2 months 1 week ago #110588

  • jelle
  • jelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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?
The administrator has disabled public write access.

default value based on previous awnsers 2 months 1 week ago #110621

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4180
  • Thank you received: 784
  • Karma: 358
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

default value based on previous awnsers 2 months 1 week ago #110622

  • jelle
  • jelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Ok, thanks for the info. Doing this in javascript, so it has to go in my template?
The administrator has disabled public write access.

default value based on previous awnsers 2 months 1 week ago #110625

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4180
  • Thank you received: 784
  • Karma: 358
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: jelle

default value based on previous awnsers 2 months 1 week ago #110626

  • jelle
  • jelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
great, thanks!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.107 seconds
Donation Image