- πͺπΈSpain rcodina
Patch on #7 works for me. In my case I have a required and a disabled condition and now both works. Thanks @gaurav_manerkar.
- πͺπΈSpain saganakat
The patch didn't work for me. I keep getting the same error, and now when I check and uncheck the checkbox the textarea is cloned.
My current environment:
- Drupal 9.5.7
- Conditional Fields 4.0.0-alpha2
- Admin Theme Gin 8.x-3.0-rc2Steps to reproduce:
- Install module with composer
- Apply the patch with composer
- In content type article add a new boolean field
- Add new conditonal rule in manage dependecies: When checkbox is checked the body is required
- Try to create new article node
- Status changed to Needs work
about 1 year ago 9:20am 18 April 2023 - Status changed to Needs review
about 1 year ago 8:34pm 25 April 2023 - last update
about 1 year ago 130 pass Here's the proof about the reason for such issue: An invalid form control with name='' is not focusable
To solve this we should do textareas optional, because it is hidden by ckeditor.
I've attached patch for this.
- πΊπΈUnited States pbabin
I think this is a core issue and not a conditional_fields error. https://www.drupal.org/project/drupal/issues/2722319 π s using Text Editor always fail HTML5 validation when "required" is added via #states Needs work
We're running Drupal 10.2.5 and ran into this issue where we have a required rtf ckeditor 5 field dependent on if another field is checked. If checked, then rtf field is required. If not checked, then rtf field is not required. The issue appears if the conditions are met on the creation of a new node. I tried the #12 patch and it did not work. After recreating the conditional in a hook_form_alter the error was still there without the conditional_fields approach.
After applying the core patch, the hook_form_alter code I was working on started working and the setup we have using conditional_fields also worked without the error.