Welcome to the LimeSurvey Community Forum

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

can i change the text value of an answerbox in another text ?

  • Thomassie
  • Thomassie's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 6 months ago #124547 by Thomassie
Hello I want the value in a certain answerbox (full name from a dropdownmenu) to come back later in the survey as another textvalue i (only given name) in a question, but of course with the same unique answercode.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago - 8 years 6 months ago #124566 by tpartner
You can use the stristr function to return the value of a selected item up to the first space.

Code:
{stristr(q1.shown, ' ', 'true')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 6 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose