How to get a simple multi-select working?

A place for users and developers of the Xataface to discuss and receive support.

How to get a simple multi-select working?

Postby 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.
semicon_guy
 
Posts: 16
Joined: Wed Oct 13, 2010 5:05 pm

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

Postby 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).
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

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

Postby 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
 
Posts: 16
Joined: Wed Oct 13, 2010 5:05 pm

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

Postby 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.
semicon_guy
 
Posts: 16
Joined: Wed Oct 13, 2010 5:05 pm

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

Postby shannah » Thu Oct 21, 2010 10:24 am

Thanks.. I noticed :)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 14 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved