Setting conditions from free text

More
5 years 5 months ago #80144 by dynamite9585
dynamite9585 created the topic: Setting conditions from free text
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
5 years 5 months ago #80149 by DenisChenu
DenisChenu replied the topic: Setting conditions from free text
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).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #80153 by dynamite9585
dynamite9585 replied the topic: Setting conditions from free text
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: 5 years 5 months ago by dynamite9585.

Please Log in to join the conversation.

More
5 years 5 months ago #80154 by DenisChenu
DenisChenu replied the topic: Setting conditions from free text

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).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 5 months ago #80197 by Mazi
Mazi replied the topic: Setting conditions from free text

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.

Start now!

Just create your account and start using Limesurvey today.

Register now