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.
If a user does not check the checkbox, they get an ugly validation message which may include HTML, for example
I agree to the <a href="/node/52213" hreflang="en">Terms and Conditions</a>. field is required.
Since HTML input with links is such a normal thing, it might be possible to use the fieldset name in the validation message instead of using the checkbox title.
Comment | File | Size | Author |
---|---|---|---|
#6 | terms_of_use.html_in_validation_2772483_06.patch | 636 bytes | darrenwh |
Create_new_account___Tag1_Quo_Local_Dev.png | 22.01 KB | rfay |
Comments
Comment #2
rfayPatch attached.
Comment #3
rfayMinor improvements.
Comment #4
ivnish CreditAttribution: ivnish commentedHi rfay!
How to reproduce this? What theme do you use?
Comment #5
ivnish CreditAttribution: ivnish commentedComment #6
darrenwh CreditAttribution: darrenwh at CTI Digital commentedI've seen a similar issue, even though its not to DCS I found parsing the token using the translate function stopped the html showing.
Comment #7
ivnish CreditAttribution: ivnish commented