Jump to content

InputFieldCheckboxes cannot be set to required


cryostar
 Share

Recommended Posts

I used the LoginRegister module for my members' portal, and part of the registration form is a field called "Where did you hear about us?" which is an InputFieldCheckboxes field. I don't want to set this as required on the user template because that would also be required for staff users as well. So I set up a hook before "LoginRegister::renderRegisterForm" to set it to required.

$form->getChildByName('register_referralmode')->attr('required','required');

It works for other fields that I set to required in this approach, but this field in particular is not applying that attribute.

Any thoughts on what could be the issue here?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...