Welcome to the LimeSurvey Community Forum

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

Problem with array and equations

  • DeWeerdtSteven
  • DeWeerdtSteven's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 5 days ago #260540 by DeWeerdtSteven
Problem with array and equations was created by DeWeerdtSteven
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.2.11+231007 
Own server or LimeSurvey hosting: own server
Survey theme/template:
==================
I created a servay with an array and I would like the default answer to be the option selected with the equation at the start.
I have managed to use an equation and it shows the correct results. I can't figure out how to show the result of the equation in the array. So the result of the equation is the selected item.
https://photos.app.goo.gl/QnErGQjgCBUNvJ8JA 
first two equations give the desired result but the array remains empty
 
when selecting other values in array equation is updated.
Can someone point me in the right direction?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #260546 by tpartner
Replied by tpartner on topic Problem with array and equations
When setting questions via ExpressionScript, you need to use the answer code, not the answer text.

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.

Lime-years ahead

Online-surveys for every purse and purpose