Feature Requests
Share ideas, discuss and vote on requests from other users in community
 
This object is in archive! 

Additional Domain Fields: Support mandatory/compulsory checkboxes/values

PhilB shared this idea 5 years ago
Under Consideration

Currently there is no mechanism in WHMCS' additionaldomainfields.php to make a checkbox mandatory (EG: for accepting CIRA or Nominet terms of registration). This means that customers can continue to check out a domain registration despite not agreeing to mandatory terms. (For .CA domains, this means that the registration will fail as they apparently enforce at the point that WHMCS attempts to submit the registration, but it would be better to block this at order time)

Please add support for a mandatory value for a field (this could be universal due to the way HTML forms work) so that I could specify "Mandatory" => "checked" or "Mandatory" => "YES" for a text box, or similar.

Comments (4)

photo
1

you just need to add :

"Required" => true,
to the entry and that should make it required to tick the box to progress.

photo
1

No, this doesn't work for checkboxes, because an "unchecked" checkbox is still "set" in HTML form terms and so passes the required test in WHMCS. This is the only reason I made this feature request - apologies for not being clear about that when I opened it.

photo
1

Probably checkboxes can not be required field. You can achive this adding jquery javascript

photo
1

This is a necessary feature to ensure legal commitment to tld specific requirements and to streamline the order process.

This appears to have been corrected in both branches 5.x and 6.x and works as expected with check boxes now.