I noticed that the Numerical Input question type is coded as <input type="text" when I look at the source code on Limesurvey. In HTML5 it should be coded as <input type="number". This is important when filling out a form on a mobile device as the keyboard automatically defaults to a number keyboard not letters. This spares the user from having to use the shift key to pull up the number keyboard.
How and where can the code be edited so the all Numerical Input question types are presented as <input type="number" ?
1) Does the application allow editing of this or is it baked into the core program?
I am relatively new to LimeSurvey or at least version 2.56.1, so I don't know if such modifications can be done or are even recommended.
2) I have been using the Numerical Input question type as the most logical one for a question that requires a number for an answer where using a dropdown or preset range would be limiting. In your opinion is this the best choice for such a question?
Yes : i think it's better to have type='number' for numeric item. Always ...
Like type='date' for date.
BUT : if we set it to 'number' : we break a lot of existing installation .... because of radix testing (comma as decimal separator).
I already use a javascript solution for this : if radix=="." then set numeric item to type='number'. ,Maybe it can be great to have it in a plugin/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
But more : if i do it, i do it with a plugin, enable only if radix is '.' .
Think if LS core have it : it's a 'option' or a new question type.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.