I want to pre-tick a checkbox based on the value in a token, so that if the token attribute_51 has value=1, then pre-tick checkbox, and if attribute_51 has value value=2, leave the checkbox unticked.
In the default answers of a checkbox, there are only the options: <no default value> or Checked.
In Version 2.73 we did this by passing the value with the invitation URL.
For example, there is a dropdown list called [RZ] with answer options in multiple languages.
The E-Mail Template there is the survey url: @@SURVEYURL@@&RZ={TOKEN:ATTRIBUTE_1}
-> this sets the default value for RZ to ATTRIBUTE_1, which is only the answer code.
In our case, RZ as dropbox was hidden, but we displayed {RZ.shown} as Text, which is the answer text of RZ in the selected language.
Unfortunately, this does not work in version 3.8.0 anymore! Does anyone know a solution for that?
Thank you Tony, that looks like a direction. With the new LS version, where can I find documentation of how to find the right Q_SQ id? The question has id 180 and the subquestion code NEW01. Does that give the code Q180_SQNEW01?
I tried, but id didn't work...
And secondly, I would want to add the code for two subquestions under the same question: NEW01 and NEW02. Do I then add the code above twice with a separation between them, or is there a more elegant way?
Great, super. It looks like it worked. And if I want to have a similar equation for several sub-questions, I just add one equation after the other, right?
OK, thank you for your help.
PS: Actually I just placed them in the same equation like this: {NEWSLETTER_NEW01 = if(TOKEN:ATTRIBUTE_50 == '1', 'Y', '')}{NEWSLETTER_NEW02 = if(TOKEN:ATTRIBUTE_51 == '1', 'Y', '')}
And it worked