1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    171
    Answers
    2
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default Answered: checkboxfield is always true

    Answered: checkboxfield is always true


    I have a form with checkboxfields. the form is filled by using loadRecord() and saved by using record.set(values);

    but the checked value never changes. if I change it manually in the database than the record will show up unchecked in the form. but whenever I submit the form it always submits as true. how do I get the unchecked value to update in the record?

    Code:
    , {
                xtype: 'checkboxfield',
                name: 'display',
                id: 'display',
                fieldLabel: 'Display',
                inputValue: 'true',
                boxLabel: 'Displayed Online'
            }

  2. Try to config your checkbox fields with uncheckedValue.
    Code:
    , {
        xtype: 'checkboxfield',
        name: 'display',
        id: 'display',
        fieldLabel: 'Display',
        inputValue: 'true',
        uncheckedValue: 'false',
        boxLabel: 'Displayed Online'
    }

  3. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Try to config your checkbox fields with uncheckedValue.
    Code:
    , {
        xtype: 'checkboxfield',
        name: 'display',
        id: 'display',
        fieldLabel: 'Display',
        inputValue: 'true',
        uncheckedValue: 'false',
        boxLabel: 'Displayed Online'
    }

  4. #3
    Sencha User
    Join Date
    May 2010
    Posts
    171
    Answers
    2
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default


    thanks! @vietits

    that was the problem, everything is working as expected now.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi