to use 2 Listboxs in the field control

May 13, 2009 at 4:35 PM

Thanks a lot for this article.

I am working on a similar custom field type and I want to use 2 listboxes in the field control. One listbox displays all the available choices, 2 buttons help to add or remove the value to the 2nd listbox.
My issue is that i can't use a function Onclick for the button. I have tried with the javascript function, the value was added in the 2nd listbox once clicked the button. But when the proram executed the override function Value, the 2nd listbox didn't have the added values in it. It appears to me that the onclick funcion was executed but the result was not included in the page.

Could you help me with this problem?

Thanks a lot.

Coordinator
May 25, 2009 at 12:43 PM

The postback will only return the selected values for the ListBox. You will need to store the values you add in the second listbox in a hidden field and load the from there.