Welcome, Guest
Username: Password: Remember me

TOPIC: Use answer values from previous questions

Use answer values from previous questions 3 years 2 months ago #65306

  • aquadhere
  • aquadhere's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Is it possible to reference not the answers to previous questions, but to the codes to the questions?

For example, let's say I have a label set for an array type question, and the code is "1000", and the title was "1000 dollars". I know that I can use SGQA codes to reference the "1000 dollars" by using a SGQA identifier, but I would like to reference just the code (i.e. "1000").

I would then like to do some math operations on that (say, divide by 10) for a subsequent question, for a result like "How about 100 dollars?".

Is this possible?
The administrator has disabled public write access.

Re: Use answer values from previous questions 3 years 2 months ago #65313

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4372
  • Thank you received: 830
  • Karma: 381
Not directly. You will need to use JavaScript to convert the answers to the codes
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.

Re: Use answer values from previous questions 3 years 2 months ago #65315

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
However, you will be able to easily do this in LimeSurvey 1.92. You can find details here.
The administrator has disabled public write access.

Re: Use answer values from previous questions 3 years 2 months ago #65318

  • aquadhere
  • aquadhere's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thanks! Looking forward to 1.92 now.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image