Forum /
Sencha Architect Forums 2.x /
Sencha Architect 2.x: Help & Discussions /
Ext JS Premium Member
Checkbox Value incorrect
Checkbox Value incorrect
I am building checkboxes on the fly on a form panel from a store populated with an AjaxProxy. The store is populated correctly with 2 fields .. text and value
Adding each checkbox to a fieldset via painted event on the form
// store.each ..... iterate over store records
fieldset.add(
{
xtype: 'checkboxfield',
name : 'SendTo',
label: record.data.text,
labelWidth: '85%',
value: record.data.value,
checked: false
}
)
According to the docs... "value" is The string value to submit if the item is in a checked state.
However, on submit only true or false is passed.
Help please!
I believe you need to set 'inputValue', not 'value'.
Ext JS Premium Member
Originally Posted by
Sottilde
I believe you need to set 'inputValue', not 'value'.
Sorry, forgot to mention using Designer 2 (298) building a Touch project.
inputValue did not work ..
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us