Welcome to the LimeSurvey Community Forum

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

How to make a mandatory question based on answers to two other issues

  • guyllaume
  • guyllaume's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113776 by guyllaume
Hi,
In my survey, I have a question that is only displayed based on answers to two other questions.
How to make this mandatory question when it appears ?

Thank you for your help.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113778 by DenisChenu
expression manager

or condition editor GUI

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • guyllaume
  • guyllaume's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113793 by guyllaume
Hi Denis,

In "Relevance equation" i have (display conditions) :
Code:
((G01Q01.NAOK == "A2") and (G02Q08.NAOK == "A2" or G02Q08.NAOK == "A4"))

and i try in "Validation" :
Code:
if(((114268X75X1490.NAOK == 'A2') and (114268X76X1502.NAOK == 'A2' or 114268X76X1502.NAOK == 'A4')),114268X76X1516.mandatory='Y',114268X76X1516.mandatory='N')

but it does not work
I'm still newbie with LimeSurvey
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113794 by DenisChenu
ANd why you don't just check Mandatory to this question ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: guyllaume
The topic has been locked.
  • guyllaume
  • guyllaume's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113798 by guyllaume
I fully expected the display conditions didn't work when the question was mandatory.
I'm really a newbie and a "boulet" (in french in the text)

Thank's a lot Denis
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose