Is there a way to create an input that only allows numbers? I can create a text box using Text in fwt but I don't see a way to set the type attribute on it.
Right now it generates <input type="text"> but I would like to generate <input type="number">
Thanks for your time! Ron
andyFri 9 Sep 2016
Hey Ron - no for FWT you will need to validate the input yourself.
You could get crazy and trap characters using onKeyDown or onModify and rewrite the field - but that might be overkill :)
Ron Snyder Fri 9 Sep 2016
Good afternoon,
Is there a way to create an input that only allows numbers? I can create a text box using Text in fwt but I don't see a way to set the type attribute on it.
Right now it generates
<input type="text">
but I would like to generate<input type="number">
Thanks for your time! Ron
andy Fri 9 Sep 2016
Hey Ron - no for FWT you will need to validate the input yourself.
You could get crazy and trap characters using
onKeyDown
oronModify
and rewrite the field - but that might be overkill :)