Timeline for hook_form_alter makes js on every other form not work
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 24, 2022 at 8:42 | comment | added | avpaderno♦ |
Also, before setting $form['my_field']['#value'] , you should check $form['my_field'] has been set.
|
|
Apr 24, 2022 at 8:41 | comment | added | avpaderno♦ |
@Jaypan is correct: That code could not cause issues with JavaScript code. You don't get the form ID from $form['#id'] , but that is another matter.
|
|
Apr 24, 2022 at 8:39 | history | edited | avpaderno♦ | CC BY-SA 4.0 |
improved formatting
|
Apr 23, 2022 at 1:39 | comment | added | No Sssweat | Check the browser's console for JS errors. | |
Apr 22, 2022 at 23:56 | comment | added | Jaypan | You are misdiagnosing your problem, as this code would not cause the issue you are facing. | |
Apr 22, 2022 at 16:42 | comment | added | Patrick Kenny | Try changing the theme temporarily (to any of the themes included with core that you are not already using) and see if the error still occurs. | |
Apr 22, 2022 at 14:51 | history | edited | May | CC BY-SA 4.0 |
added 8 characters in body
|
Apr 22, 2022 at 14:49 | history | edited | May | CC BY-SA 4.0 |
added 26 characters in body
|
Apr 22, 2022 at 14:37 | history | asked | May | CC BY-SA 4.0 |