Welcome, Guest
Username: Password: Remember me

TOPIC: EM returns the code - I want the Answer

EM returns the code - I want the Answer 2 years 5 months ago #82728

  • mark
  • mark's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 86
  • Thank you received: 1
  • Karma: 0
I'm new at EM but want to master it as I see it's potential.
I have a list (radio) question "What country are you from".
Later on I want to have a question that says "You are from XYX".
I code the question - You are from {COUNTRY}.
If the respondent is from country code number say 10 then 10 is inserted as the country.
How do I get the country not its code?
Number 10 = XYZ - so the answer not the code.

Thank you all
The administrator has disabled public write access.

Re: EM returns the code - I want the Answer 2 years 4 months ago #82858

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5425
  • Thank you received: 307
  • Karma: 252
When using the integrated editor, there is a "LimeReplacement" icon to add such placeholders. This should then show the answer text and not the code.

For more details how EM handles this, see docs.limesurvey.org/Expression+Manager&s...#Access_to_Variables

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: EM returns the code - I want the Answer 2 years 4 months ago #82859

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Use {COUNTRY.shown}
The administrator has disabled public write access.

Re: EM returns the code - I want the Answer 2 years 4 months ago #82873

  • mark
  • mark's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 86
  • Thank you received: 1
  • Karma: 0
Thanks Mazi - will check out the link
The administrator has disabled public write access.

Re: EM returns the code - I want the Answer 2 years 4 months ago #82874

  • mark
  • mark's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 86
  • Thank you received: 1
  • Karma: 0
Thank you - just what I'm after.
Mark
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.105 seconds
Donation Image