News:

Looking for documentation? Take a look on our wiki

Main Menu

Registration : Checkbox required does not work

Started by julos0877, May 15, 2017, 14:30:08 PM

Previous topic - Next topic

julos0877

Hi Virtuemart team,

I am surprised that the checkbox required in the registration form does not work yet.
If we add for example the "terms of service" check box in the registration form as required field, we can see the asterix on the label (*) but it's still possible to valid the form without check it.
After that, the account is created but last name, first name and other virtuemart fields were not taken in consideration and these fields are empty.

Do we not have the possibility to add this validation in the function myValidator?

Thanks in advance

Jörgen

Hello

What VM and Joomla versions do You use ?

This sounds like it could be a JavaScript issue. Have You tried with the protostar template ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

julos0877

Hi Jorgen,

Thanks for your reply.
VirtueMart 3.2.1 and Joomla 3.7.0

Yes of course, same issue with protostar.

Did you do the test? If so, could you share the test url to compare the code?

Many tahnks in advane

Milbo

I wonder if you set it up correctly per userfield.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

julos0877

Hi Milbo,

See atached the screenshot of the userfield.
I tried with another one but same result.

Milbo

Interesting, yes. The custom userfield "tos" works as expected, but not the standard checkboxes. I wonder, cant be hard to fix
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

julos0877

Hey Milbo,

Happy to see that I'mnot crazy :-)

Hope you will succeed to solve this.

Jumbo!

Change the field name to "tos" instead of "tos_agreed". You will need to create a new one and unpublish the existing one. The type of the field should be "custom".

Next go to VirtueMart Configuration and enable the option called "Must agree to Terms of Service on EVERY ORDER".

Now check again.

Milbo

yeh, then he just uses the custom layout for the tos.

And I think the checkbox stuff works in the cart, but not for the addresses. He is right, it should be fixed, but atm it has a very low priority. julos you can speed this up by supporting the project, buying a membership and write a ticket that you wanna have this fixed. greets

https://extensions.virtuemart.net/support/virtuemart-supporter-membership-bronze-detail
http://extensions.virtuemart.net/ticket
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/