Welcome to the LimeSurvey Community Forum

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

Using expression manager to customise the end message

  • alextj
  • alextj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago - 1 year 4 months ago #245448 by alextj
I'm new to Expression Manager, but I'm trying to customise the end message shown based on a previous answer.

I've tried writing this: 
"To complete the course enrolment {If(G02Q36.code=="cc","do this","other do this")}"

But this just shows this code on the end screen, with a red box around the 'if' and on hover says 'undefined function'. I haven't been able to find any information on what 'undefined function' means in this context.

Can anyone see where I'm going wrong?

Thanks!
Last edit: 1 year 4 months ago by alextj. Reason: tidy

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 4 months ago #245450 by Joffm
Hi,
the error message tells you that you use a not defined function.

If you have a look here
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]
you see that there is no implemented function "If".
The function you want to use is  "if". (lower case)

Meaning, it was just a typo on your side.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: alextj

Please Log in to join the conversation.

  • alextj
  • alextj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #245466 by alextj
Thank you Joffm!
Now it works ok, I'll make sure I check everything for lower case vs mixed case, I didn't realise that had an influence.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose