Hey #Drupal people, is it considered bad form to declare an ajax callback functi...
Sheldon @sysop408@sfba.social
Hey #Drupal people, is it considered bad form to declare an ajax callback function within a hook_form_alter() function?
The ajax callback works, and adds additional fields to the form as desired, but those fields have their own ajax callback functions, which don't work.
This is the first time I'm trying to do this through hook_form_alter(). I usually create a field widget plugin.
I'm wondering if attempting to improvise through hook_form_alter() is my issue or if I'm doing something wrong with how I'm structuring my initial ajax response.
So... is declaring a ajax callback in hook_form_alter() a bad idea?