- Issue created by @venu_bhagirath
- 🇳🇿New Zealand danielveza Brisbane, AU
I suspect this might be an issue in the custom code.
If you change this to
$form['actions']['submit']['#states']['disabled'][':input[name="abc"]']['value' => "abc"];
does that work?
Otherwise there is a really good reference page here → for how to use the states API. That provides some good examples to follow.
- Status changed to Postponed: needs info
almost 2 years ago 7:30am 18 April 2023 - 🇮🇳India venu_bhagirath
This formatting was working previously it is not working after upgrading to drupal 10. It was last working with drupal 9.5.5.
- 🇦🇺Australia tallytarik
Could be related to #3354998 🐛 #states disable property has stopped working for some element types Needs work ?
- Status changed to Closed: outdated
about 1 year ago 10:26pm 20 November 2023 I am closing this issue due to inactivity. Reopen it as necessary.
- 🇿🇦South Africa uberellis
I can replicate the issue for formatted fields using CKEditor 5.
The disabled state works using CKEditor 4, where the contents of the WYSIWYG remains editable when using CKEditor 5.
The input format part of the widget becomes disabled as designed and works as expected.