Timeline for #Ajax change the input wrapper
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 27, 2018 at 13:43 | history | edited | avpaderno♦ |
edited tags
|
|
Sep 26, 2016 at 11:09 | answer | added | Kpone | timeline score: 1 | |
Sep 26, 2016 at 10:14 | comment | added | Jimmy Ko | It is worth to post the answer here if this question is fixed. Thanks. | |
Sep 26, 2016 at 9:18 | comment | added | Kpone | Let us continue this discussion in chat. | |
Sep 26, 2016 at 9:01 | comment | added | Kpone | Then what did i need to put in my ajax callback if i don't do the changes here and if the $form_state['rebuild'] need to be in the submit function ? | |
Sep 26, 2016 at 8:56 | comment | added | Jaypan | Almost. $form_state['rebuild'] needs to be in the submit function. It will not work in the ajax callback. | |
Sep 26, 2016 at 8:53 | comment | added | Kpone | Ahhh ok i understand i just need to put in my ajax callback a $form_state['#rebuild'] = TRUE; then and in my form definition do the treatment ^^ i do the modifications and i back here if i had some questions | |
Sep 26, 2016 at 8:39 | comment | added | Jaypan | As I said, you cannot add/alter form elements in the ajax callback. It has to be done in the form definition. | |
Sep 26, 2016 at 8:38 | history | edited | Kpone | CC BY-SA 3.0 |
deleted 41 characters in body
|
Sep 26, 2016 at 8:37 | comment | added | Kpone | yes the form rebuild is a test i do to try to fix the bug but without it the bug is the same ^^ | |
Sep 26, 2016 at 8:31 | comment | added | Jaypan | You are adding form elements in your ajax callback. This can't/won't work. All changes to the form need to be made in the form definition, as the form is already cached before the callback. Also, $form_state['#rebuild'] needs to be set in either the submit function, as it will not work in the ajax callback. | |
Sep 26, 2016 at 8:26 | history | asked | Kpone | CC BY-SA 3.0 |