Check out the LimeSurvey source code on GitHub!

Setting conditions from free text

More
4 years 9 months ago #80144 by dynamite9585
Q4 is a free text question.
i would like to put a condition on Q8
I would like Q8 to be hidden UNLESS Q4 contains "national"
any help would be appreciated.
i have tried making the condition = *national* but no joy

Please Log in to join the conversation.

More
4 years 9 months ago #80149 by DenisChenu
Hello,

You have to use regexp
docs.limesurvey.org/Expression+Manager#Implemented_Functions

Something like that:
regexMatch("national",Q4)

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 9 months ago - 4 years 9 months ago #80153 by dynamite9585
still isn't working. i tried asking the person in charge if i can make check boxes but i'm not allowed

is there anything i should be putting in Q4 to make this work?
Last Edit: 4 years 9 months ago by dynamite9585.

Please Log in to join the conversation.

More
4 years 9 months ago #80154 by DenisChenu

dynamite9585 wrote: is there anything i should be putting in Q4 to make this work?

If you put:
regexMatch("national",Q4) the Q8 is show if Q4 contain national.

Try:
!regexMatch("national",Q4) in Q8 relevance.

Tested, it work like a charm.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 9 months ago #80197 by Mazi

dynamite9585 wrote: Q4 is a free text question.
i would like to put a condition on Q8
I would like Q8 to be hidden UNLESS Q4 contains "national"
any help would be appreciated.
i have tried making the condition = *national* but no joy

Please attach your survey for testing.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form