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
8 months 3 weeks ago - 8 months 3 weeks 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: 8 months 3 weeks ago by alextj. Reason: tidy

Please Log in to join the conversation.

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

If you have a look here
[url] manual.limesurvey.org/ExpressionScript_-...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
8 months 3 weeks 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.

Lime-years ahead

Online-surveys for every purse and purpose