News:

Support the VirtueMart project and become a member

Main Menu

HTML5 extra attributes in registration page

Started by marvays, October 17, 2022, 09:32:04 AM

Previous topic - Next topic

marvays

Hi.
I'm solving a problem. I use Rupostel OPC where I have HTML5 extra attributes on the phone field. I need to set the same during registration. It is not among the custom fields in the Virtuemart configuration (too bad)... it could be added there :)

But I can't find a php file in which I can set this when registering for a phone number.
Can you advise me please?

For the phone field I need to set:
pattern="^\+420\s?\d{9}$"

sandomatyas

Having an HTML5 pattern attribute somewhere here could be very useful. If I'm right, it could work quite similarly to how the placeholder attribute works. I think with a small effort, it could make the checkout UX much better by providing a customizable validation solution for shopper fields.