Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Setting conditions from free text

Setting conditions from free text 4 years 3 months ago #80144

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
The administrator has disabled public write access.

Setting conditions from free text 4 years 3 months ago #80149

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Setting conditions from free text 4 years 3 months ago #80153

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 3 months ago by dynamite9585.
The administrator has disabled public write access.

Setting conditions from free text 4 years 3 months ago #80154

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Setting conditions from free text 4 years 3 months ago #80197

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5982
  • Thank you received: 368
  • Karma: 260
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.251 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form