Can a replacement field be added to an expression?

More
5 years 1 week ago #81798 by LSCitizen
LSCitizen created the topic: Can a replacement field be added to an expression?
Hello -

I want to write a tailoring expression that displays the value stored in the TOKEN:FIRSTNAME replacement or text (E.G: YOUR NAME) depending on the response from a previous question.

This is what I have tried so far:

What is {if(Name =="Y",{TOKEN:FIRSTNAME},"YOUR NAME")}

Can a token field be added to an expression?

Please Log in to join the conversation.

More
5 years 1 week ago #81820 by Mazi
Mazi replied the topic: Can a replacement field be added to an expression?
This should be possible. Try leaving ut the { } brackets around "TOKEN:FIRSTNAME" and use the "show logic file" feature for testing: docs.limesurvey.org/Show+Logic+File&stru...tions+for+LimeSurvey


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 1 week ago #81941 by LSCitizen
LSCitizen replied the topic: Can a replacement field be added to an expression?
That worked! Thanks for your help...

Please Log in to join the conversation.

More
5 years 1 week ago #81980 by Mazi
Mazi replied the topic: Can a replacement field be added to an expression?

LSCitizen wrote: That worked! Thanks for your help...

You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now