A select element on my form gets processed with an AJAX callback. There is a Multiselect widget on the form, and I want to see the new value of the field as if the form had been submitted. But, the $form_state['values']['my_multiselect'] is always NULL when checked in the form builder function during AJAX callback. Where does Multiselect build the value from the form state?
1 Answer
Looks like there's an existing answer on Multiselect issue queue: Changing multiselect options using #ajax, and it has the solution.
-
Thanks, Johnathan. I thought I had just done that search but it was for Reply module issue queue. Commented May 1, 2012 at 14:30
-
1While these links may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. meta.drupal.stackexchange.com/questions/585/…– user1359Commented Aug 27, 2013 at 17:58