We have 2 mutiselect and 1 file field on same form.
Second multiselect is filled by #ajax on first mutiselect. It works fine if we select only one option but throws illegal choice error if select mutiple options.
Now we remove the file field from the form. Now we select single or mutiple values from multiselect, It works fie.
So multiselect cause problem with #ajax on presence on file field.
Here is code sample :- https://drupal.org/node/2229055
Comments
Comment #1
joshi.rohit100Comment #2
debaryadas commentedA solution of your problem has been posted at https://drupal.org/node/2229055 . Please check it.
Comment #3
debaryadas commentedA partial solution for the above problem has been posted at https://drupal.org/node/2229055
Comment #4
debaryadas commented