PDA

View Full Version : ComboBox - Specifying the "value for empty"



ben_dog
15 Sep 2008, 3:34 AM
Hi,

I'm not sure this is possible, can't see any parameter in the doc for it.

Is it possible to specify for a ComboBox what I would call the "value for empty", ie the value of the combobox when nothing is selected ?

I've got a couple of ComboBoxes where I would like to specify that 0 is the value for empty.

I'm not sure I'm explaining it properly, you tell me if that doesn't make any sense! /:)

Cheers
Ben

santosh.rajan
15 Sep 2008, 3:52 AM
emptyText: '0'

ben_dog
15 Sep 2008, 3:55 AM
emptyText: '0'

mmm, no that simply displays 0 when in the field when it's empty or nothing is selected.

What I want to do is set that the underlying value of the form element be 0 when it's empty.

Ben