Results 1 to 3 of 3

Thread: Checkbox Not Rendering On Form

  1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    300

    Default Checkbox Not Rendering On Form

    Greetings All:

    Using ExtJS4.2.1 on Chrome with the following form defined:
    Code:
    Ext.define('CPSClientApp.view.admin.folform', {    extend: 'Ext.window.Window',
        xtype: 'foldataform',
        //stateful: true,
        //stateId: 'foldataform_state',
        isNew: false,
        title: 'New Client Folder',
        width: 550,
        height: 525,
        modal: true,
        closable: false,
        layout: 'fit',
        items: [{
            xtype: 'form',
            url: './data/pradata.php',
            border: false,
            waitMsgTarget: true,
            items: [{
                xtype: 'hidden',
                name: 'recordid'
            }, {
                xtype: 'fieldset',
                title: 'Folder Name',
                margin: 10,
                padding: 10,
                items: [{
                    xtype: 'textfield',
                    name: 'foldername',
                    emptyText: 'Enter The Folder Name...',
                    anchor: '100%'
                }]
            }, {
                xtype: 'checkboxfield',
                boxLabel: 'Hide This Folder',
                name: 'ishidden',
                inputType: '1',
                width: 200
            }]
        }]
    });
    The checkbox field does not render the "checkbox." Please see the image. Did I miss a definition or include somewhere? Thanks.
    result.png

  2. #2
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    337

    Default

    You just need to get rid of the inputType: '1' config on your checkbox definition.

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default

    Change inputType to inputValue

Posting Permissions

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