Solved
How to set a field to number only?
We are asking a lot of questions which should be only answered by numbers. How is it possible to restrict a survey field only to numbers? Does this automatically result in the "number keyboard" showing up directly when the survey is used on a mobile phone?
Thanks
Topher
Best answer by TomG
You can change a text input field to an html5 number input field using JavaScript. For example:
```
jQuery("#"+this.questionId+" .InputText").attr('type', 'number');
```
Mobile devices will automatically pop up the numeric keyboard when a number field gets focus.
Depending on your need, you may need to add additional attributes like step, min, etc. You should still use Qualtrics Content Validation - Content Type - Number.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

Add the line of JavaScript to the addOnload function. It is only an example for a simple text entry question. You may need to modify it based on your question. As I wrote earlier, you may also need to add additional attributes.