Page 1 of 1

How to get a simple multi-select working?

PostPosted: Wed Oct 20, 2010 4:00 pm
by semicon_guy
I am wondering how to get a simple multi-select. What is the appropriate syntax in fields.ini? In the documentation it shows that a multi-select is possible
http://xataface.com/wiki/index.php?-tab ... -mode=list
http://media.weblite.ca/files/photos/mu ... _width=500

However, I can't find the syntax documented. I tried the advmultiselect, but it appears to be overkill. Currently I am using a checkbox instead of a multi-select and it works. If multi-select works with the datagrid tool (checkbox does not), I'd much prefer multi-select.

Re: How to get a simple multi-select working?

PostPosted: Thu Oct 21, 2010 9:46 am
by shannah
I think it's just
Code: Select all
repeat=1


(Cryptic, I know.... this attribute was originally intended to tell a field that it can hold multiple values, whether they be by checkbox or otherwise... however in the case of checkbox, this parameter is implicitly set whenever a non-boolean field is set to use a checkbox widget and a vocabulary, because it is the most sensical default behavior).

Re: How to get a simple multi-select working?

PostPosted: Thu Oct 21, 2010 9:56 am
by semicon_guy
That did the trick, thank you very much!

The good news is that the multi-select looks easier to update dynamically with Javascript than the check boxes. The check boxes had labels with seemingly random ID numbers so it would be difficult to disable the text (although I was able to disable the check boxes themselves).

Unfortunately, the multi-select is not supported in the DataGrid module, but I'll survive =)

Re: How to get a simple multi-select working?

PostPosted: Thu Oct 21, 2010 10:00 am
by semicon_guy
BTW I added this information to the wiki, along with the widget:grid file upload limitation.

Re: How to get a simple multi-select working?

PostPosted: Thu Oct 21, 2010 10:24 am
by shannah
Thanks.. I noticed :)