PDA

View Full Version : Checkbox in Formpanel unchked dont have value



Rafael
14 May 2009, 11:42 AM
{
xtype: 'checkbox',
fieldLabel: 'Agendar Visita',
align: 'left',
name: 'agendar_visita',
id: 'agendar_visita',
}]

With this:


dados_chamado.push( FP_AbrirChamado.getForm().getValues());
dados_chamado: Ext.util.JSON.encode(dados_chamado),

json:

[{"codigo_chamado":"1680","fantasia_nome":"312213",
"data_abertura":"02/12/2008","codigo_cliente":"5"
,"nome_funcionario":"Joao","hora_abertura":"00:00:00",
"observacao":" assass"}]If my checkbox not selected, in json dont have a id of checkbox!
Why ?

bt_bruno
15 May 2009, 3:51 AM
Despite creating the same thread on the oficial brazilian forum, you've already done this question days ago here : The value of the Checkbox unselected is null (http://www.extjs.com/forum/showthread.php?t=67341&highlight=checkbox+value)

Please don't mess with the forums: brazilian and oficial.