Field in form that accepts only numbers

Thank you very much, it worked. And for example, what can we put to accept only the email format? Thank you