How to get a simple multi-select working?
Archived from the Xataface Users forum.
semicon_guy — Wed Oct 20, 2010 4:00 pm
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.
shannah — Thu Oct 21, 2010 9:46 am
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).
semicon_guy — Thu Oct 21, 2010 9:56 am
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 =)
semicon_guy — Thu Oct 21, 2010 10:00 am
BTW I added this information to the wiki, along with the widget:grid file upload limitation.
shannah — Thu Oct 21, 2010 10:24 am
Thanks.. I noticed