PDA

View Full Version : [2.0b1/rc1] 'Value' config of Ext.form.radio doesn't work.



chyang
21 Nov 2007, 11:58 PM
Hi guys,

Not sure if this has been reported or not. I'm using dynamic created radio buttons. But after setting the 'value' config for radio buttons, it doesn't generate the corresponding 'value' parameter in the input tag in HTML.

I also checked the post values of the form containing those radio buttons, I found the values are always 'on'. I assume this is a bug because Ext.form.radio extends from Ext.form.checkbox, and checkbox always gives this kind of 'on' string as output.

My current workaround is to created another hidden field, and hijack the onClick event of each radio button to modify that value though.

moonspice
22 Nov 2007, 1:24 AM
Have you already tried to use the parameter 'inputValue' instead of 'value'?

chyang
22 Nov 2007, 8:18 AM
Ahh...inputValue works. But I cannot find 'inputValue' anywhere in the document?

BTW, thanks anyway.