Welcome to the LimeSurvey Community Forum

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

Mandatory option based on Relevance Equation

  • LSQuery
  • LSQuery's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231131 by LSQuery
Please help us help you and fill where relevant:
Your LimeSurvey version: [Version 3.28.17]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi, is it possible to create a mandatory option based on relevance equation? Please let me know, thank you.

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 5 months ago #231132 by tammo
As far as I know: no. Not at this moment. But it would be a good idea.
0 for not mandatory
everything between 0 and 1 for soft mandatory
1 for mandatory?


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #231137 by tpartner
Replied by tpartner on topic Mandatory option based on Relevance Equation
Use a question validation equation.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • LSQuery
  • LSQuery's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231267 by LSQuery
Replied by LSQuery on topic Mandatory option based on Relevance Equation
Thank you for the suggestion, can you give an example of how to use a question validation equation?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago - 2 years 5 months ago #231268 by Joffm
Read the manual about question types-
Each one contains a chapter about question validation.
[url] www.limesurvey.org/manual/Question_type_...28em_validation_q.29 [/url]

Then there are examples here
[url] www.limesurvey.org/manual/ExpressionScri...alidation_q_in_array [/url]
[url] www.limesurvey.org/manual/ExpressionScri...Checkbox.22_question [/url]

And here you find a demo survey
[url] www.limesurvey.org/manual/ExpressionScri...n_Types_Demonstrated [/url]
Either you download and import  it or you may study it in the demo installation of LimeSurvey
[url] demo.limesurvey.org/index.php?r=admin/authentication/sa/login [/url]

In short:
In the question validation you enter a logical term that is either TRUE or FALSE.
If TRUE the question is answered correctly, if FALSE it is not and an error message is displayed.
Example:
Your question validation is: Q1==1
If the respondent entered "1" in Q1 the equation is TRUE, otherwise FALSE.

It is like relevance equations where a question/group is only displayed if the equation is TRUE.

In your case where you want to switch the mandatory option you obviously will check that the question is not empty.

Joffm  

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 5 months ago by Joffm.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose