Check out the LimeSurvey source code on GitHub!

Use answer values from previous questions

More
5 years 5 months ago #65306 by aquadhere
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?

Please Log in to join the conversation.

More
5 years 5 months ago #65313 by tpartner
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.

Please Log in to join the conversation.

More
5 years 5 months ago #65315 by TMSWhite
However, you will be able to easily do this in LimeSurvey 1.92. You can find details here .

Please Log in to join the conversation.

More
5 years 5 months ago #65318 by aquadhere
Thanks! Looking forward to 1.92 now.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form