PDA

View Full Version : radiofield=on



moimoibis
23 Apr 2012, 11:27 PM
hello,
I'm using radiofield component in my application and I have a problem with the submit.
When I check the radiofield and click on the submit button, it return to me radiofield=on and not the value I configured.



Here is my code:


fullscreen: true,


layout: 'vbox',
url: 'hello.html',
method: 'get',
standardSubmit: 'true',
items: [
{
xtype: 'titlebar',
dock: 'top',
title: 'Inscription'

},
{
xtype: 'fieldset',
title: 'Fiche d\'inscription',
id: 'forminscription',

items: [
{
xtype: 'textfield',
name : 'Id',
label: 'Identifiant',
placeHolder:'Compris entre 3 et 20 caractères'
},
{
xtype: 'radiofield',
name: 'radiobuttonsCiv',
label: 'Mr',
value: '0'
},
{
xtype: 'radiofield',
name: 'radiobuttonsCiv',
label: 'Mme',
value: '1'
},
{
xtype: 'radiofield',
name: 'radiobuttonsCiv',
label: 'Mlle',
value: '2'
}



]
},
{
xtype:'panel',
defaults: {
xtype: 'button',
style: 'margin: 1em',
flex: 1
},


layout: {
type: 'hbox'
},
items: [
{
text: 'Valider',
ui: 'confirm',
handler: function() {
this.up('formpanel').submit();
}
},
{
text: 'Annuler',
ui: 'decline'
}
]
}
]




This is the URL I have after clicking on submit:
34444
As you can see the value is 'on' and not '1'

Can anyone help me please

moimoibis
25 Apr 2012, 4:33 AM
Can anyone help me it's very important.