Welcome, Guest
Username: Password: Remember me

TOPIC: Set a value to multiple answers and saved it

Set a value to multiple answers and saved it 1 year 1 week ago #98362

  • andersonelias
  • andersonelias's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 19
  • Thank you received: 1
  • Karma: 0
Hallo LimeSurvey Experts,
I'm wondering if I can set a fix value to an answer and saved the value for deciding the view of the next Group of Question.

For Example
In QuestionGroup 1 with 2 DropDownList Questions:
Q1 : with 3 Answers A B C
Q2 : depending on the first answer (from Q1) with 3 Answer each : A1 A2 A3 B1 B2 B3 C1 C2 C3

I want to set a hidden field with a fix value for A1 - C3. Value: 10 20 30 40 50 60 70 80 90. If user select A in Q1 and A3 in Q2 so the value is 30. If user select C in Q1 and C2 in Q2 so the value is 80.
Can I set each answer with a value and save it in the hidden field, so I can decide to view the next group of question according to the value saved there?

My Idea, I set the value as Answercode, but I can't figure out how I can save the code in my hidden field.

Appreciate any help or another approach, Thanks!
The administrator has disabled public write access.

Set a value to multiple answers and saved it 1 year 1 week ago #98404

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
You can use an equation question and Expression Manager to store the value.
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: andersonelias
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image