- 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
about 1 year 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
7 months ago 10:26pm 20 November 2023 - 🇺🇸United States cilefen
I am closing this issue due to inactivity. Reopen it as necessary.