I have the following in my view among other fields:
echo form_multiselect('person_tags[]', $options, set_value('person_tags[]'), $atribute_tag);
The above produces a list of tags, as expected. More than one choice can be made from the list, as expected.
When the form is submitted, validation is run as follows;
$this->form_validation->set_rules('person_tags[]', 'Tags', 'required');
If there are other validation errors, the form re-appears with a list of validation errors but, unfortunately, it doesn't repopulate the form_multiselect() with the originally selected items, as expected. Also, I noticed that if I remove the validation rule for person_tags, when there are other errors on the form, person_tags multiselect() repopulations the list with the originally selected items. How is validation supposed to work? It seems to remove or transform the post.