Welcome to the LimeSurvey Community Forum

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

show prior answer in depending question text

More
9 years 1 month ago - 9 years 1 month ago #138916 by FranzGerbig
Hello guys outthere,

does sb have a clue how to show a prior answer (a1) in a depending question text (q2, see below for an example syntax)?

q1: How many cars do you have?
a1: [0-99]

q2:
{if((q1== 1), "What's the colour of your car?", "")}
{if((q1 > 1), "What colours have your cars? Please name a colour for all of your q1.shown cars", "")}

using LS 3.13.2+180709
Last edit: 9 years 1 month ago by FranzGerbig. Reason: better understanding
The topic has been locked.
More
9 years 1 month ago #138921 by DenisChenu
What is q1 question type ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 1 month ago #138923 by FranzGerbig
q1 = Numerical input

using LS 3.13.2+180709
The topic has been locked.
More
9 years 1 month ago #138927 by tpartner
Maybe you have a typo - that works for me in 2.50.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: FranzGerbig
The topic has been locked.
More
9 years 1 month ago #138933 by FranzGerbig
I don't know :dry:
anyway, it works with

{if((q1== 1), "What's the colour of your car?", "")}
{if((q1 > 1), "What colours have your cars? Please name a colour for all of your ", "")} {if((q1 > 1), {tq1.shown}, "")}{if((q1 > 1), " cars.", "")}
:)

using LS 3.13.2+180709
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose