Welcome to the LimeSurvey Community Forum

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

Different Max value for Multiple Numeric input Question Type

  • amritdeep
  • amritdeep's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago #135510 by amritdeep
My Question is :
Q1: What is child's age? [Multiple numeric input]
Years:
Months:
Days:

Now i want to set different max value for
Years (max value= 17)
Months(max value= 11)
Days(max value= 30)


How this can be implemented???????????
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #135533 by tpartner
Three separate questions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • amritdeep
  • amritdeep's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago #135589 by amritdeep
3 different question is not possible, because my client requirement is for only one question (or i can say display of question on web should be like its a 1 question)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #135603 by tpartner
Then you will need to use CSS to make the three questions appear as one. The CSS details would depend on your template.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 10 months ago #135609 by Mazi
How about using a multiple numeric question and the "Whole question validation" feature: manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29

Some not tested syntax for the question validation assuming your question uses question code "age" and subquestions are using codes 1 to 3:
age_1.NAOK <= 17 AND age_2 <= 11 AND age_3.NAOK <=30

At the question validation tip you can enter three blocks:
{if(age_1.NAOK <= 17,"","Please enter a value <= 17 for 'years'.")}
{if(age_2.NAOK <= 11,"","Please enter a value <= 17 for 'months'.")}
{if(age_3.NAOK <= 30,"","Please enter a value <= 17 for 'days'.")}

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • amritdeep
  • amritdeep's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago #135644 by amritdeep
Thats awsome....

Thanks a lot Sir. :) :) :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose