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

TOPIC: Must Select 0 or 3 Multiple-Choice Questions Equation

Must Select 0 or 3 Multiple-Choice Questions Equation 2 years 7 months ago #107986

  • loucarey62
  • loucarey62's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi All,

I'm trying to set a Question Validation Equation to test that Multiple Choice question has either 0 or 3 choices checked. The question is set to Mandatory=No and I'm using the following equation but, no mater how many choices I select or if I don't select any choices, I get the following message:

"One or more questions have not been answered in a valid manner. You cannot proceed until these answers are valid."

My Question Validation Tip is set to: "You must either select 3 choices or no choices.". Because I'm not seeing that message and because no matter how many choices I select or if I select none, I'm guessing my equation is invalid.

I've attached a PDF printout of the question edit page.


Any help with this would be greatly appreciated.

Lou

File Attachment:

File Name: SurveyMult...tion.pdf
File Size:258 KB
The administrator has disabled public write access.

Must Select 0 or 3 Multiple-Choice Questions Equation 2 years 7 months ago #107987

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5432
  • Thank you received: 810
  • Karma: 240
I am not sure about the equation. But I think one of your problems is, that you have set a maximum and a minimum number plus the equation. I think for the equation to work properly, you need to take out the minimum and maximum numbers. Because otherwise you have two error message crossing each other.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.

Must Select 0 or 3 Multiple-Choice Questions Equation 2 years 7 months ago #107988

  • loucarey62
  • loucarey62's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks Holch for your reply.

In the end, I do believe you're probably right about not setting the Minimum/Maximum values but, even after removing those settings, I'm still getting the same result.

Lou
The administrator has disabled public write access.

Must Select 0 or 3 Multiple-Choice Questions Equation 2 years 7 months ago #107989

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5432
  • Thank you received: 810
  • Karma: 240
Well, at least we have excluded one possible error. Now you just need to find out if your equation is correct. But there you probably have to wait for Tpartner or some other specialist on those matters.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
Time to create page: 0.357 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form