formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Sat Jan 07, 2006 6:53 pm Post subject: How Do I Manually Insert Choices Into a MultipleListField? |
|
|
"My client has a category list that is over 150 categories and each exhibitor will have several categories to select. I thought the best option might be the multiplelist field but when I put the categories in it either crashes my browser or tells me that I must fix the "entry per line" and shows a negative number for the characters.
Is there a better option for this or can I change the 'entry per line" characters limit?"
I suggest you do the following:
1. Create a form with a MultipleListField using a couple "dummy" choices.
2. Edit the form manually and add your choices. Your MultipleListField should become somthing like:
$opts =
array(
"Choice1",
"Choice2",
"Choice3",
"Choice4"
);
$formBean->addField(new MultipleListField("mult_list",
"Multiple List Field",
REQUIRED, $opts,
$opts,
"[Select at Least One]", 10));
3. If you are using a database with this form, use PHPMyAdmin to change the type of your table's mult_list attribute so that it becomes a varchar of size say 255. This size should be greater than that of your longest choice. |
|