Results 1 to 5 of 5

Thread: Override CheckBoxField getValue

  1. #1
    Sencha User
    Join Date
    Mar 2019
    Posts
    16
    Answers
    4
    Vote Rating
    1
      0  

    Default Override CheckBoxField getValue

    I'm attempting to override the checkboxfield getValue method so that on a FormPanel.getValues() or using CheckBoxField.getValue() I get true or false instead of true and null. I've read various posts and see that the following was recommended.

    Ext.define('Override.form.field.Checkbox', {
    override: 'Ext.form.field.Checkbox',

    getValue: function () {
    return this.checked ? true : false;
    }
    });


    However, that doesn't appear to be working. How can I get true and false for CheckBoxField when used in a FormPanel or just accessing the component?

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    977
    Answers
    5
    Vote Rating
    -506
      -2  

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele


  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    443
    Answers
    5
    Vote Rating
    -321
      -3  

    Default

    Hello,

    Thank you for contacting Sencha Support!

    We have reached out an Architect for his review on this and will keep you posted as soon as we hear from them.

    Thank you for your patience.

    Regards,
    Kumar
    Sencha Support

  4. #4
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    443
    Answers
    5
    Vote Rating
    -321
      0  

    Default

    Hello,

    Thank you for your patience,

    We are still awaiting response from the Architect team on this issue, I will ensure that your are updated as soon as there is a response from them.

    Regards,
    Kumar
    Sencha Architect.

  5. #5
    Sencha - Sales Team
    Join Date
    Feb 2012
    Location
    Fort Myers, Florida
    Posts
    42
    Vote Rating
    -8
      0  

    Default

    can you provide me an example of how you are trying to do this - where you are putting the override code, etc
    Marc Gusmano
    Sales Engineer
    Sencha Inc.

Tags for this Thread

Posting Permissions

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