Welcome, Guest
Username: Password: Remember me

TOPIC: Setting conditions from free text

Setting conditions from free text 2 years 5 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.

Re: Setting conditions from free text 2 years 5 months ago #80149

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Hello,

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

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

Denis
The administrator has disabled public write access.

Re: Setting conditions from free text 2 years 5 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: 2 years 5 months ago by dynamite9585.
The administrator has disabled public write access.

Re: Setting conditions from free text 2 years 5 months ago #80154

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
The administrator has disabled public write access.

Re: Setting conditions from free text 2 years 5 months ago #80197

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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.107 seconds
Donation Image