This is the respective issue as https://www.drupal.org/node/1391196
The hooks for instance and widget settings, hook_field_widget_settings_form() and hook_field_instance_settings_form() both return form arrays, but receive no information at all about the larger form they're inserting into.
This means that they can't add more complex behaviours such as dependencies and ajax -- hook_form_alter has to be used instead.
That ticket was switched from D8 to D7 which back in 2013, with this comment:
Field types are no plugins, so this doesn't apply anymore to D8. I'm not even sure whether we can change those function signatures in D7 though ... feels like a won't fix to me.
Well, thankfully we have no problem with API additions in Backdrop (so long as we are not breaking backwards compatibility)...
PR by @klonos: https://github.com/backdrop/backdrop/pull/2533
Recent comments
Funnily we launched a new Dutch website this very week, milieucafe.nl It is not a 'news' website but operates in the context of local government. The layout focuses on content instead of...
Looking for examples of (local) news websites running on BackdropCMS
The answer is off topic, but I'll add a little. 1. Backend. Why you don't need links to other websites: Since you know the structure of your site and content, you can decide for...
Looking for examples of (local) news websites running on BackdropCMS
Hi Chrys, AI isn't always your best friend. A form alter hook is correct, but hiding by CSS isn't ideal. You could look at how the TinyMCE integration does it, which provides hiding...
CKEditor5: Here's how to prevent "Select Image from Library" from appearing