Restrict phone form field to numbers only and verify if email is valid format

yas
yas Member Posts: 5

Hi, how do I restrict and customise what can be entered in form fields. Could anyone help please? Thanks

  1. phone number: allow to only enter numbers,
  2. phone number: in which number format to correctly add a country code
  3. email:" verify that the email is valid
Tagged:

Answers

  • courtneyquaresimo
    courtneyquaresimo Member Posts: 83 Leader

    Hey @yas

    Hoping I can help here.

    1. phone number: allow to only enter numbers - You can change the field type to phone number and then it will only allow numbers. See screenshot below.
    2. phone number: in which number format to correctly add a country code - I don't think there is an option to add a country code "option". They can add their country code if they want but I dont think there is a way to force that
    3. email:" verify that the email is valid - I don't think there is a feature for this either. A work around is just adding a second line and put "confirm email". This will prompt people to double check themselves

    Hope this helps somewhat.


  • yas
    yas Member Posts: 5

    Thanks. I have set it to phone number already, but when I use the field in preview it allows me to enter letters and the form still gets sent out (although it should come up with an error saying inout numbers only)