I'm using Ajax in a hook_form_alter function with custom user fields. I successfully did this in Drupal 7 but I can't get it to work in Drupal 8. What do I specify for the "wrapper"? What I'm doing is not working. Here's my code: (Everything works except the target HTML is not being replaced with the field_office element)
I would like to know how to automatically import a .po file of a language contains custom translations to the installation of a costum modules and to the update of this module?
I am learning Drupal 8 and its really confusing. Can any suggest me the contributed modules that are easy to understand Drupal coding standards, API's, theming etc.
I have successfully instantiated a relatively simple Drupal.behaviors function in my custom module which modifies an existing node_form. Now the second part is to use a $form element as a trigger for an action to dynamically populate a form field if desired. This value is generated in my hook_form_alter and set to drupalSettings.