Timeline for Adding fields via ajax in form does not show in arrays in form_submit
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 9, 2021 at 8:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 10, 2021 at 20:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 6, 2021 at 5:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 5, 2020 at 20:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 1, 2020 at 22:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 2, 2020 at 13:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 1, 2019 at 21:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 26, 2019 at 8:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 23, 2019 at 6:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 5, 2013 at 22:19 | answer | added | JoBu1324 | timeline score: 1 | |
Dec 5, 2012 at 16:21 | comment | added | Ghost | I forgot to update this thread. I found a work around but not what I would consider an answer so I am leaving open. The problem appears to be that the $form is already re-built by the time add_img_upload is called in the example above. You can only send form fields that were already added to the $form. You make those fields not visible basically in the initial build of the form. My workaround was to always build 5 empty managed_file fields. If files already exist, I build a managed_file field for each existing file and then add the 5 empty ones. | |
Oct 12, 2012 at 4:41 | comment | added | Ghost | I noticed an issue in add_img_upload after I posted. I had the following defined: $form_state['file2'] = NULL; it should be $form_state['input'][sprintf('file%d',$num_of_files)] = NULL; That change had no impact. | |
Oct 12, 2012 at 4:39 | review | First posts | |||
Oct 12, 2012 at 4:54 | |||||
Oct 12, 2012 at 4:34 | history | asked | Ghost | CC BY-SA 3.0 |