VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: YodaStudio on February 14, 2018, 07:52:21 AM

Title: [3.0.18] Registration form input minimum lenght
Post by: YodaStudio on February 14, 2018, 07:52:21 AM
Good morning everybody.

I added a custom field to new customer registration form. I'd like to have a verification on the text lenght since it must be exactly 13 characters long and this field is required.
I have no idea how to get it.

Any help?
Thanks.
Title: Re: [3.0.18] Registration form input minimum lenght
Post by: Studio 42 on February 22, 2018, 01:58:14 AM
You can use a Joomla system plugin and check for this, but this need a javascript too.
Or perhaps using a userfield plugin. but i dont think that Vm have specific length rules in core.
Title: Re: [3.0.18] Registration form input minimum lenght
Post by: YodaStudio on March 07, 2018, 09:38:47 AM
I found no plugins that allow me to get what I need.
I guess I have to edit some code (including javascript) but I don't know what to do. That's the reason why I asked this community.
Title: Re: [3.0.18] Registration form input minimum lenght
Post by: Studio 42 on March 07, 2018, 11:47:15 AM
You are a developper, no ?
Check the field value and length and set it as required should not be a problem.