1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    21
    Vote Rating
    0
    Supriya Kale is on a distinguished road

      0  

    Default Unanswered: Posting 'true-false' on 'check' and 'uncheck' of checkbox

    Unanswered: Posting 'true-false' on 'check' and 'uncheck' of checkbox


    Hi,

    I have a form containing many 'checkboxes'. The values for those checkboxes are being posted as 'on'/'off'. But instead I want to use 'true'/'false'. How can this be achieved?

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default use "inputValue" config

    use "inputValue" config


    Hi Supriya,

    Which framework are you useing ? if it is 4.1.x then default value of check box is on/off.
    you can also use inputValue config of check box.
    For more info read API docs -http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Checkbox-cfg-inputValue
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    21
    Vote Rating
    0
    Supriya Kale is on a distinguished road

      0  

    Default


    Quote Originally Posted by sword-it View Post
    Hi Supriya,

    Which framework are you useing ? if it is 4.1.x then default value of check box is on/off.
    you can also use inputValue config of check box.
    For more info read API docs -http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Checkbox-cfg-inputValue

    Thanks Sword, I went through the link and saw using 'inputValue' property by setting it to 'true' but its not working as even though I leave checkbox unchecked, the value is being passed as 'true' which is unexpected.
    Is there some other way to work out?

  4. #4
    Sencha User Arg0n's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    122
    Answers
    12
    Vote Rating
    16
    Arg0n will become famous soon enough Arg0n will become famous soon enough

      0  

    Default


    You could use the checked config instead... maybe :x

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    21
    Vote Rating
    0
    Supriya Kale is on a distinguished road

      0  

    Default


    Quote Originally Posted by Arg0n View Post
    You could use the checked config instead... maybe :x
    Hi, Thanks for the reply.

    How would it be if the checkbox is extended? when I extend it.. where to put the class physically?

  6. #6
    Sencha User Arg0n's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    122
    Answers
    12
    Vote Rating
    16
    Arg0n will become famous soon enough Arg0n will become famous soon enough

      0  

    Default


    Huh??? xD

    You extended the original ExtJs checkbox class and you don't know where to go with the file, do you?

Thread Participants: 2

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