From: Yaron K. <ya...@wi...> - 2012-05-25 18:24:45
|
Hi Dave, Unfortunately, it's not possible to have a single input that both holds checkboxes for existing values, and lets you enter new values. Currently the best form input for arbitrary entry of multiple values, I would say, is "text with autocomplete", which just lets you do autocompletion on a a list of values. I'm hoping that the "Multiple Select" input will get added to SF or SFI at some point: http://harvesthq.github.com/chosen/ That isn't a checkboxes input either, but it does capture some of the spirit of combining structured options with the ability to add arbitrary values. As for using #arraymap, there are a lot of examples of it in action - you can see some here: http://smw.referata.com/w/index.php?title=Template:Site&action=edit -Yaron On Fri, May 25, 2012 at 12:18 PM, Dave Anderson < sem...@ac...> wrote: > I have a string property called Tags that is set to allow a list of values. > I'd like have my form display all previously entered tags as checkboxes and > the correct ones checked. I'd also like an input box to allow for new tags. > > Can I use #arraymap to offer these checkboxes. If so how? If not, would you > any other recommended ways? I imagine I could use jQuery with a list of > values; at the moment I'm not even sure how to query a list of all the > values of a certain multi-value property, except for > http://smw.referata.com/wiki/List_the_set_of_unique_values_for_a_property. > > Regards, > Dave > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |