- Posts: 17
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple numerical input next to eachother
- ProjetLions
- Topic Author
- Offline
- New Member
Less
More
3 years 7 months ago #205745
by ProjetLions
Multiple numerical input next to eachother was created by ProjetLions
Hello! I want to put two numerical input next to each other so the question would look like this :
What is your child's age?
_______ month and _______ days
I can not find a javascript equation that can solve this on internet...
Thanks in advance!
What is your child's age?
_______ month and _______ days
I can not find a javascript equation that can solve this on internet...
Thanks in advance!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12994
- Thank you received: 3996
3 years 7 months ago #205748
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple numerical input next to eachother
Hi,
though I do not see any necessity not to use a multiple numerical input or an array(numbers) with one row and two columns here you find two solutions.
The first with dropdowns.
In my opinion the number of month is limited to a few (otherwise the number of days is quite senseless).
So a dropdown is the best way to avoid silly inputs like 0 months, 45 days.
forums.limesurvey.org/forum/can-i-do-thi...down-box-within-text
Second is the solution with plain text inputs
forums.limesurvey.org/forum/installation...xt-field-within-text
It's the same script as in the first solution except this
Joffm
though I do not see any necessity not to use a multiple numerical input or an array(numbers) with one row and two columns here you find two solutions.
The first with dropdowns.
In my opinion the number of month is limited to a few (otherwise the number of days is quite senseless).
So a dropdown is the best way to avoid silly inputs like 0 months, 45 days.
forums.limesurvey.org/forum/can-i-do-thi...down-box-within-text
Second is the solution with plain text inputs
forums.limesurvey.org/forum/installation...xt-field-within-text
It's the same script as in the first solution except this
In the script exchange all "select" to "input".
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- ProjetLions
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
3 years 7 months ago #205752
by ProjetLions
Replied by ProjetLions on topic Multiple numerical input next to eachother
Thank you!! It works very well
The topic has been locked.