Results 1 to 2 of 2

Thread: Form panel checkbox group values

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2013
    Location
    Sofia
    Posts
    2

    Default Form panel checkbox group values

    Touch version tested:
    • Touch 2.4.2
    Browser versions or Packager version tested against:
    • Chrome
    • Safari
    • Cordova/Phonegap
    Device and OS tested against:
    • Ubuntu
    • OSX
    • ASUS tablets with Android
    What theme are you using for your application:
    • Custom
    Description:
    • The getValues() method of the formpanel gives inconsistent values for a checkbox group. If only the last checkbox in the group is checked the value for the group will be a string (the value of the last check box), but if any other checkbox is selected, the value will be an array. The order of the check boxes shouldn't change the expected values.
    Steps to reproduce the problem:
    • Create an Ext.form.Panel
    • Add some check boxes to the panel (with the same name) and an unique value
    • Check only the last check box
    • Call the getValues method of the form panel
    The result that was expected:
    • {checkboxes_name: ['last_value']}
    • or {checkboxes_name: [null, null, 'last_value']}
    The result that occurs instead:
    • {checkboxes_name: 'last_value'}
    The url to fiddle testcase: https://fiddle.sencha.com/#fiddle/1760

  2. #2

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. read the data from database and display checkbox group in form
    By barbara1712 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Oct 2012, 10:32 PM
  2. ExtJS 2.2 - Getting values of a checkbox group
    By pramanat in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 23 Aug 2011, 11:48 PM
  3. Action/checkbox for group rows in grid.Panel
    By vadimv in forum Ext: Discussion
    Replies: 0
    Last Post: 19 Apr 2011, 12:28 AM
  4. Checkbox group checked with load values
    By scopus in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 21 Sep 2010, 3:10 AM
  5. Replies: 1
    Last Post: 5 Oct 2009, 3:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •