Welcome to the LimeSurvey Community Forum

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

EM equation is not workable for Gender type question.

More
8 years 10 months ago #143608 by newwukong
I am try to use the expression manager to control the question text.
for example:
Adjust a text, e.g. write "Mr" or "Mrs" depending on a gender question asked before.
but it's not workable, anyone can test it?
The topic has been locked.
More
8 years 10 months ago - 8 years 10 months ago #143611 by Joffm
Hi, newwukong,
just write into the question text:

Good morning {if(gender==1,'Mr.','Mrs')} Smith.

"gender" as a list options question
where "gender" is the question code
1 is the code for "male".

If you have "gender" as a question of type "gender", it is:
{if(gender=='M','Mr.','Mrs')}

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 8 years 10 months ago by Joffm. Reason: Typo
The following user(s) said Thank You: newwukong
The topic has been locked.
More
8 years 10 months ago #143631 by tpartner
If your survey language is English, what about if the title should be Ms or Dr? I think you need to explicitly ask title.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 9 months ago #144285 by newwukong
Hi Joffm,

Thanks a lot, it's OK!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose