Problem/Motivation

When clientside validation is enabled, the checkbox require message is not placed correctly.

Steps to reproduce

1) Enable clientside_validation and webform_clientside_validation.
2) Import the webform attached.
3) Go to the form and try to submit the form empty.
4) See that the error message is displayed between the input and the label for the checkbox element.
Note that the Checkboxes element is okay but the Checkbox element not.

Image:
Image with the error

Comments

paulocs created an issue. See original summary.

paulocs’s picture

Status: Active » Needs review
StatusFileSize
new1.33 KB
jrockowitz’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new44.01 KB

I tested the patch and looks good.

I also tested the terms of service element and the {term of service} token is appearing in the error message. When I have the chance I will create a ticket.

jrockowitz’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new2.64 KB

The attached patch includes a little minor clean-up and adding a required checkbox to the test webform

jrockowitz’s picture

Status: Needs review » Reviewed & tested by the community
jrockowitz’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new2.13 KB

  • jrockowitz authored 5c4f3bc on 8.x-5.x
    Issue #3213216 by jrockowitz, paulocs: Checkbox required error message...

  • jrockowitz authored 5c4f3bc on 6.x
    Issue #3213216 by jrockowitz, paulocs: Checkbox required error message...
jrockowitz’s picture

Status: Needs review » Fixed
jrockowitz’s picture

Status: Fixed » Needs work
jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new2.63 KB

  • jrockowitz authored bf63ae7 on 8.x-5.x
    Issue #3213216 by jrockowitz, paulocs: Checkbox required error message...

  • jrockowitz authored bf63ae7 on 6.x
    Issue #3213216 by jrockowitz, paulocs: Checkbox required error message...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.