Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Replacement Fields not displaying in th

Replacement Fields not displaying in th 2 years 1 month ago #109855

  • JayCharles
  • JayCharles's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi all,

I am hoping some of you can help with an issue relating to replacement fields. I read about the replacement field issues with emails, and I have tried the solutions outlined in those topics but I have not had any joy yet.

I am using Limesurvey 2.05+ Build 140502

I am trouble getting the replacement field functions to work in the body of a question. I have had no issue with the email invitations using replacement field functions such as {TOKEN:FIRSTNAME} ect but in the body of the question, nothing.

I am trying to populate a date, which is a mandatory token field, into the question.

ie. Since {TOKEN:ATTRIBUTE_1} have you had a CT scan? (where TOKEN:ATTRIBUTE_1 is the last interview date)

I have assigned a field caption "LastInterviewDate" to {TOKEN:ATTRIBUTE_1}. I have also used this as the field description.

Can anyone shed any light as to how I can get the date to display?
The administrator has disabled public write access.

Replacement Fields not displaying in th 2 years 1 month ago #109866

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6114
  • Thank you received: 1356
  • Karma: 532
Did you try {ATTRIBUTE_1}?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Replacement Fields not displaying in th 2 years 1 month ago #109884

  • JayCharles
  • JayCharles's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi Tony, cheers for the prompt reply

I did give this a try.

When {ATTRIBUTE_1} is used instead, it shows as a syntax error in the Logic file. (It shows up in red text with a box around it)

Thanks anyway. I will keep plugging away.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.195 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form