Closed (fixed)
Project:
Webform
Version:
8.x-5.21
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2020 at 22:03 UTC
Updated:
12 Oct 2022 at 17:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz commentedThe attached webform replicate the required issue with the clientside_validation.module for the checkboxes other elements.
The attached patch fixes this issue.
Comment #3
jrockowitz commentedI also noticed that clicking the back button caused the checkboxes validation not be setup correctly.
Comment #4
jrockowitz commentedComment #6
jrockowitz commentedI committed the patch. Please download the latest dev release to review.
Comment #8
jrockowitz commentedComment #9
cbfannin commentedI had this issue and installed latest dev for review as suggested and seems to be working fine for me now.
Comment #11
joshua1234511The issue is not yet fixed.
Though the patch is added the issue still exists and is replicable.
Comment #12
kaise.lafrai commented@jrockowitz This issue is the closest I could find that resembles the issue I am having with the checkboxes-other element.
I have a 'checkboxes other" element with multiple options to select from. The field is required. If I select "other" and no other checkboxes and leave the text field that appears empty and select NEXT, the inline error messages appear twice, once for the entire element and once for the "other" text field that was left empty. What I was expecting to happen is that the overall error message would not appear since I did select an option from the checkboxes (in this case I chose "other"). I am thinking we need to add additional logic to the webform.states.js to trigger the event handler only if "other" is selected and the text field is left empty.
Thank you for looking into this issue.