Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Because the "I agree to the terms" checkbox is implemented using the "checkboxes" (plural) rather than "checkbox" (singular) form api type, it is not compatible with Clientside Validation. This seemed a little silly, since there is only one checkbox, so I made a quick patch to make the implementation compatible with clientside validation. This patch also pulls the "uc_termsofservice_checkout_required" variable so that the required attribute can be enabled/disabled from the settings page.
Comment | File | Size | Author |
---|---|---|---|
checkbox_fix.patch | 734 bytes | perfectcu.be |