Trying to Understand Form Fields Multi Documentation
I am trying to use a MySQL "set" field type - It appears to be implemented by the Multi field as provided in the Fuel user guide by
$options = array('a' => 'option A', 'b' => 'option B', 'c' => 'option C');
$fields['multi_example'] = array('type' => 'multi', 'options' => $options, 'value' => 'a');
The code generated by this generates the needed form field, and if only one value is set, it gets into the form correctly as the initial vale.
But, if one wants to set two values (say "a" and "c") , not just one as in shown in the example, what is wanted? I tried an array, but my guess was clearly "not it".
And after submitting, some array seems to have been returned -- what is the content of that array?
I'm assuming that I will need pre- and post- processing functions to handle the translation from and to the "set" field type....
This is perhaps an example that needs to be documented as I assume most simple multi-select types of fields would be very similar.