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

More
2 years 10 months ago #124547 by Thomassie
Thomassie created the topic: can i change the text value of an answerbox in another text ?
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.

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago - 2 years 10 months ago #124566 by tpartner
tpartner replied the topic: can i change the text value of an answerbox in another text ?
You can use the stristr function to return the value of a selected item up to the first space.

{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: 2 years 10 months ago by tpartner.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!