Consider the following code snippets:
from multiple.fs:
... <MICdefine name="selector" data="AtomicData::Text" type="HTMLIO::Select"> "daniel";; { $field->display({multiple => 3}}; $field->set_possible_hash({zane => Zane, daniel => Daniel, charles => Charles, sam => Sam, micheal => Michael}); } </MICdefine> ...
The above creates a field that will display itself as a select box
with the multiple param set to three and the items as indicated in the
anonymous hash passed to set_possible. Daniel (value daniel) will be
highlighted/selected initially.
*******
from select.html:
<html><body> <form action="overridden" MICfieldspace="multiple"> Please select everyone to invite to your party:<br> <MICinput name="selector"><br> <input type="submit" name="select_submit" value="Submit"> <MICsubmit name="select_submit" value="Submit" goto="display"> </MICsubmit> </form> </html></body>*******
<html><body> <form action="none" MICfieldspace="multiple"> The revelers are:<br> <MIClist iterator="$reveler" list="$fs->get_field(`selector')->value()"> <b>$reveler</b><br> </MIClist> <input type="submit" name="multiple_submit" value="Revise"> <MICsubmit name="multiple_submit" value="Revise" goto="select"> <input type="submit" name="multiple_submit" value="Done"> <MICsubmit name="multiple_submit" value="Done" goto="done"> </form> </body></html>*******