1. #1
    Ext JS Premium Member breckster's Avatar
    Join Date
    Mar 2008
    Posts
    114
    Vote Rating
    0
    breckster is on a distinguished road

      0  

    Default 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!

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    117
    Vote Rating
    10
    Sottilde will become famous soon enough

      0  

    Default


    I believe you need to set 'inputValue', not 'value'.

  3. #3
    Ext JS Premium Member breckster's Avatar
    Join Date
    Mar 2008
    Posts
    114
    Vote Rating
    0
    breckster is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sottilde View Post
    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 ..

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar