So I've got a large form in a web application, and currently the textboxes (inputs) that accept string values look exactly the same as those that require integer values. Form validation prevents the user from entering a string into the integer textboxes, but it feels like the user should be informed of this requirement when they first view the form.
Is my thought process here correct, and if so, what is the best way to inform the user that integer values must be inputted into certain textboxes?
Here are some ideas I had:
Detail this requirement as a placeholder/watermark in the textbox. What would it say, however? It seems like most statements would be clunky at best: "Enter an integer" (does the user know what an integer is?), "Numbers only" (the user might enter a decimal number).
Include some wording next to the textbox (same problems as with placeholder, also will clutter up the form)
Set the input as type="number". In Chrome, this results in up/down arrows automatically rendered inside the textbox. In Internet Explorer 11, however, no such visible cues are shown.
What do you think?