Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Question type Equation valued by jquery javascript

  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 7 months ago #230943 by tassoman
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.x community

Hello there,
  it's possible to have the value of question type Equation populated by javascript jquery?

Question:
let matrix = [ 0, 11, 22, 33, 44, 55 ];
$('#question{Qcode.sgqa}').value(matrix[{TOKEN:ATTRIBUTE_2}]);

ATTRIBUTE_2 is = 2

So this question response should be 22

«All your survey answers are belong to us »

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 7 months ago #230945 by tpartner
No, the equation question is populated server-side.

Use a hidden (via CSS) short-text question.

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

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose