Welcome to the LimeSurvey Community Forum

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

Set multiple choice checkbox to "checked" after assigning value with equation?

  • wisniman
  • wisniman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204372 by wisniman
How do I set the checkbox status of a multiple choice question to "checked" after assigning values with an equation?

I have been able to assign the values and they can be read out using the expression manager, but the multiple choice checkboxes are not marked.

Unfortunately, I have been unsuccesfully searching the documentation and forum so far, any help would be greatly appreciated! Thank you very much in advance!

I am working on LS version 3.22.25.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204373 by Joffm
If you have a question of type "equation" with
{M1_SQ002="Y"}
{M1_SQ005="Y"}
and a multiple question M1, subquestions SQ002 and SQ005 are checked.
If not, you may make a mistake and should send this part of your survey as lss export.
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • wisniman
  • wisniman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204382 by wisniman
Thank you for your quick reply!

However, I can only get it to work with simple value assignments that don't reference previous questions in the equation and only for questions that don't use relevance equations.

Basically I want to construct array filters for follow up questions based on more or less complex equations combinig multiple answer values. The attached .lss is just a basic mockup of my survey situation.

I know I can use relevance equations for subquestions, but that doesn't work for me in the given scenario.

Even though the checkboxes are not checked I can use the populated multiple choice questions as array filters, but I am experiencing problems with lost answers when backward/forward navigating throught the survey.

Also I am anxious if the values are really stored in the db when the checkboxes are not checked?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204384 by Joffm
This will not work if the questions are on the same page.
Revise the structure.







Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: wisniman
The topic has been locked.
  • wisniman
  • wisniman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204388 by wisniman
Phew, I see... Now I got some work to do! :S

Thank you very much for the quick support!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose