Gender Default values

Plus d'informations
il y a 1 semaine 4 jours #169581 par waitz
waitz a créé le sujet : Gender Default values
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.

How can I do this?

Version 2.73.1+171220

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #169583 par holch
holch a répondu au sujet : Gender Default values
Can you provide a sample survey (.LSS)?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #169587 par waitz
waitz a répondu au sujet : Gender Default values
Yes, I have extracted parts of the survey. The gender question is in "More about you", and the script is no longer there.

Fichier attaché :

Nom du fichier : surveys_archive.zip
Taille du ficher :7 ko

Version 2.73.1+171220
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #169588 par holch
holch a répondu au sujet : Gender Default values
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #169589 par holch
holch a répondu au sujet : Gender Default values
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Les utilisateur(s) suivant ont remercié: waitz

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 3 jours #169628 par tpartner
tpartner a répondu au sujet : Gender Default values
I have already pointed out in another post that setting a question with Expression Manager MUST be done in an equation question.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Les utilisateur(s) suivant ont remercié: waitz

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!