Cart #step1 min and maxlength by phone number and postcode
Auteur : Papadopoulos T.
Visité 1425,
Followers 1,
Partagé 0
How can I add a minimum and maximum limit for phone numbers and post code?
At the point where the customer enters his details to reduce errors and false information.
I want to set a minlength and maxlength for the phone numbers value and postcode?
Any suggestion???
The way for I find it, it's not good because every time to upload anything then disappears everything.
Thanks in advance
Posté le
Hello.As far as I know, at the moment, this cannot be done using the program itself.
Auteur
You have told me this again. I did not ask if it is done through the program but even through the first step of the page code.
It is possible to specify if a field should hold only number or no numbers or a date. It is also possible to specify a max- length for a field. And it is possible to specify if a field is required.
But without special code it is not possible to specify an exact template for the data that should be tipped in.
You could make a wish-and-hope post for that.
You could take a look here: https://www.geeksforgeeks.org/implement-a-javascript-when-an-element-loses-focus/
And then the check: https://www.w3schools.com/js/tryit.asp?filename=tryjs_validation_number
When your wanted field will lose focus you could perform a check.
This way it should be possible to check fields before a SEND is performed.
Auteur
I know it is done with code. Thanks for the info and links.