Welcome, Guest
Username: Password: Remember me

TOPIC: Can a replacement field be added to an expression?

Can a replacement field be added to an expression? 2 years 5 months ago #81798

  • LSCitizen
  • LSCitizen's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
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?
The administrator has disabled public write access.

Re: Can a replacement field be added to an expression? 2 years 5 months ago #81820

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Can a replacement field be added to an expression? 2 years 5 months ago #81941

  • LSCitizen
  • LSCitizen's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 38
  • Thank you received: 1
  • Karma: 1
That worked! Thanks for your help...
The administrator has disabled public write access.

Re: Can a replacement field be added to an expression? 2 years 5 months ago #81980

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image