View Full Version : Checkbox Value incorrect

6 Mar 2012, 2:00 PM
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

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!

6 Mar 2012, 4:41 PM
I believe you need to set 'inputValue', not 'value'.

6 Mar 2012, 8:20 PM
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 ..