inputEx - MultiSelectCustomField Usage

setValue

Example setting the default value

.removeButton{ width: 10px; height: 10px; position: absolute; border: 1px solid black; right: 0px; top: 3px; }
		var ms = new Y.inputEx.MultiSelectCustomField({
              label: "Choose librairies :", 
              name: 'librairies', 
              maxItems:3,
              choices: [
                    { value: null, label: 'Choose a library' },
                    { value: 'yui', label: 'YUI' },
                    { value: 'dojo', label: 'Dojo' },
                    { value: 'prototype', label: 'Prototype' },
                    { value: 'scriptaculous', label: 'Scriptaculous'},
                    { value: 'mootools', label: 'Mootools' }
                ],
              maxItemsAlert: function(){alert("limited to 3 responses")},// limit to 3 response
              listSelectOptions : {
                choices:[
                  { value: 0, label: 'Normal' },
                  { value: 1, label: 'I like' },
                  {'value': -1, label : "I don't like'"}
                ]
              },
              description: "what you think about those librairies",
              parentEl: "container1"
            });
		ms.on("updated",function(params) {
			var value = Y.JSON.stringify(params);
			Y.one('#container1').appendChild( inputEx.cn('div',null,null,"Updated at "+(new Date())+" "+value) );
		});