- Posts: 26
- Thank you received: 0
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
- Topic Author
- Offline
- Junior Member
Less
More
7 years 10 months ago #135510
by amritdeep
Different Max value for Multiple Numeric input Question Type was created 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???????????
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10612
- Thank you received: 3691
7 years 10 months ago #135533
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Different Max value for Multiple Numeric input Question Type
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 0
7 years 10 months ago #135589
by amritdeep
Replied by amritdeep on topic Different Max value for Multiple Numeric input Question Type
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10612
- Thank you received: 3691
7 years 10 months ago #135603
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Different Max value for Multiple Numeric input Question Type
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
- Offline
- Official LimeSurvey Partner
7 years 10 months ago #135609
by Mazi
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
Replied by Mazi on topic Different Max value for Multiple Numeric input Question Type
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'.")}
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 0
7 years 10 months ago #135644
by amritdeep
Replied by amritdeep on topic Different Max value for Multiple Numeric input Question Type
Thats awsome....
Thanks a lot Sir.
Thanks a lot Sir.
The topic has been locked.