PDA

View Full Version : [FIXED-220] Dynamically adding radio with numeric value to fieldset throwing error



meyerovb
11 Aug 2010, 10:49 AM
.93 windows chrome
This one's kinda weird. Throws "SYNTAX_ERR: DOM Exception 12" on line 7011 of ext-touch-debug-w-comments.js. Change the value of the radio to 'a' and it works fine...



Ext.setup({ onReady: function () {
var fieldset = new Ext.form.FieldSet({
fullscreen: true,
});
fieldset.add({ xtype: 'radio', value: '3', label: 'a' });
try { fieldset.doLayout(); }
catch (e) { alert(e); }
}});

Jamie Avins
12 Aug 2010, 8:54 AM
Thank you for the report.

hendricd
12 Aug 2010, 1:28 PM
@meyerovb --

You want to use the inputValue config to specify the submitted value:


fieldset.add({ xtype: 'radio', inputValue: '3', label: 'a' , checked : false});

evant
8 Sep 2010, 8:14 PM
This has been fixed up, will be in 0.95.