grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

Form type "Tel" doesn't work as accepted

Open MohamedAlwash opened this issue 4 years ago • 2 comments

Hello every one,

I made a form with some fields i.e phone number and set the type as Tel. After submit, the browser doesn't reject letters. Am I doing something wrong?

123

12

MohamedAlwash avatar Jan 27 '20 11:01 MohamedAlwash

I believe it works as expected. Mainly, it adds a type="tel" to the html tag.

You probably want to add a validation pattern to disable letters.

amaury-hanser avatar Feb 17 '20 16:02 amaury-hanser

Yes, but I thought it will do on it's own.

MohamedAlwash avatar Feb 17 '20 16:02 MohamedAlwash