PDA

View Full Version : Radio Fields



arlo.carreon
16 Jul 2010, 7:40 AM
{
xtype: 'fieldset',
title: 'Property Status',
defaults: { required: true, xtype: 'radio' },
items: [
{ name : 'prop_type_status', label: 'For Sale', checked: true, value: 'sale' },
{ name : 'prop_type_status', label: 'Lease', value: 'lease' }
]
}


The above code is from the only radio button on my form. The rest of the form works perfectly, it's just this button that always return false. I want "prop_type_status" to return "lease", or "sale".

I appreciate any help with this.

evant
18 Jul 2010, 9:45 PM
Currently there's no built in way to do this. For the time being, you could override the getValue() method for the radio class to return the "inputValue" (or whatever you decide to call your property).

arlo.carreon
19 Jul 2010, 6:11 AM
How can I use the regular functionality for radio buttons? I just need to know which one was checked.