Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Define a text string to use as a placeholder

  • richardoben
  • richardoben's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #174005 by richardoben
Is it possible to define a string of text (not something the survey respondent enters) that can then be accessible via the placeholder fields selection list when creating survey questions?

I want to be able to use the text in multiple locations within a group of questions and only have to change it in one location.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #174010 by holch
You can use an equation type question. I guess you can just put text in it, without any expression, formula or anything. You can then access this text via expression manager and pipe it into other questions. Just hide the equation question with "Always hide" in the settings of this question.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • richardoben
  • richardoben's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #174011 by richardoben
Replied by richardoben on topic Define a text string to use as a placeholder
Thank you for the quick response. I was reading through the manual trying to figure out how to do this, and it looked like I may be able to accomplish this by using an equation question type, but I can't figure out how to make it work.

Specifically, where exactly am I supposed to put the text string and what format does it need to be in?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #174012 by holch
Why not simply trying it?
1. Create an equation type question.
2. Write your text string just as text. No special format, nothing. It will be stored in the equation question.
3. Hide this question via "always hide"
4. access the question via {questioncode} anywhere in the survey.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu, richardoben
The topic has been locked.
More
5 years 7 months ago #174013 by jelo

richardoben wrote: that can then be accessible via the placeholder fields selection list when creating survey questions?

holch explained the correct approach.

Most of us seem to not use the field selection list in the editor.
So you might won't find your equation question in the selection list.
What version of LimeSurvey is used?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • richardoben
  • richardoben's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #174015 by richardoben
Replied by richardoben on topic Define a text string to use as a placeholder
Thanks again for the quick response.

I did try a few things, none of which worked, which was the reason for my question in this forum. However, I tried what you suggested above and it worked! Thank you!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #174017 by holch
> I did try a few things, none of which worked,

Just for the future: If this is the case, please post what you have tried already and what was the result.

This will avoid that we post solutions that you have already tried. E.g. I posted the basic solution. If you would have tried this already (and for some reason it didn't work) we would have lost time on the way to find a solution. Sometimes it doesn't work because there is a bug, a misconfiguration or just an error in your code.

Good to know that it finally worked for you.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose