PDA

View Full Version : The value of the Checkbox unselected is null



Rafael
2 May 2009, 6:21 PM
xtype:'checkbox',
fieldLabel: 'Finalisado',
align: 'left',
name: 'finalisado',
id: 'finalisado',


Ext.Ajax.request({
url: 'update.php',
method:'POST',
params:{
parametro: 'Atualizar_Chamado',
finalizar_chamado: Ext.getCmp("finalisado").getValue(),
},


used getValue() when unselect checkbox , the value is null. Why ?

dawesi
3 May 2009, 1:52 AM
search is your friends.

there's even an extension on these forums for this.

dawesi
3 May 2009, 1:57 AM
search the forums for checkbox getValue or alike and you'll find heaps of answers.

could you also add something to the docs here: http://extjs.com/learn/Ext_FAQ_Forms#Fieldset_Checkbox_Toggle_State