1

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 1

1

Looks like there's an existing answer on Multiselect issue queue: Changing multiselect options using #ajax, and it has the solution.

2
  • 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
  • 1
    While 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/…
    – user1359
    Commented Aug 27, 2013 at 17:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.