For those who are looking for making TextField or TextFormField accept only numbers as input, try this code block :. The maxLength property sets or returns the value of the maxlength attribute of a text field. According to w3c, the default value for the MAXLENGTH attribute is an unlimited number.So if you don't specify the max a user could cut and paste the bible a couple of times and stick it in your form. But these features still widely lack support or have qualitatively poor support. Number type input --> < ion-input type = " number " value = " 333 " > ion-input > < ion-input type = " number " value = " 333 " > ion-input >