VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: marvays on October 17, 2022, 09:32:04 AM

Title: HTML5 extra attributes in registration page
Post by: marvays on October 17, 2022, 09:32:04 AM
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}$"
Title: Re: HTML5 extra attributes in registration page
Post by: sandomatyas on May 24, 2024, 09:23:06 AM
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.

(https://i.postimg.cc/MZQGqyCs/k-p.png)