Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.16.2+251209
Own server or LimeSurvey hosting: own
Survey theme/template: bootstrap vanilla (with some color mods)
==================
Hello LimeSurvey community. thanks for all the help in the past. I understand all of you are volunteers and I greatly appreciate your help.
I am trying to use values from the participation token file to reduce the amount of typing the participants have to do. I can successfully retrieve the TOKEN attribute data and display to the user. It is information that they entered previously, such as their region or area. I set the default answer for the questions from the TOKEN attributes. I show them the data and then have a check-box asking if they need to update the data. If the check-box (multiple choice with one possible answer) is checked, I show the questions to update the personal data. If the box is NOT checked, I do not display the questions (relevance 0). If the personal info questions are NOT shown, then nothing is stored in the response DB, even though there was a default answer set.
I have created a work-around by creating a hidden equation question at the end that sets the value:
Code:
(if(is_empty(Q00.NAOK), TOKEN:ATTRIBUTE_1, Q00.NAOK)}]
Is there a way to "force" LS to save the response of a non-displayed question (relevance 0) to be the default value?
I've attached a simple LSS file that I believe shows the issue.
thanks,
Rick