Gender is part of one of my tokens, where value 1=Female and 2=Male
I tried to add {GENDER = if(TOKEN:ATTRIBUTE_19 == '1', 'F', '')} into the gender question text field. This only added F after the question text when the attribute was 1, and nothing when the attribute is 2, but it didn't pre-tick the actual gender button. Sometimes the attribute is empty, and then gender should of course not be pre-ticked.
For future reference: Please always upload the files unzipped. There is no need for zipping them, as they are fairly small files and it just creates additional work for those who want to help you in the forum. Make it as easy for us to help as possible.
I'll have a quick look and check if I can see something.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
One other hint: clean your example survey down to only the essential requirement to test what you are trying to do. There are loads of other questions before even getting to the gender question. So for us to test it, it takes unnecessary additional time.
As it heavily depends on token tables that I don't have, I can only have a guess:
Have you tried to include this into a hidden equation type question? If included into the question text of course it will give out only a text.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.