1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Answers
    6
    Vote Rating
    2
    cyberwombat is on a distinguished road

      0  

    Default Unanswered: Slider not returing value in form

    Unanswered: Slider not returing value in form


    This form:

    Code:
    Ext.define('App.view.Drive', {
        extend: 'Ext.form.Panel',
       
        config: {
            items: [
            {
                xtype: 'fieldset',
                items: [
                {
                    xtype: 'textfield',
                    label: 'Name',
                    name: 'name'
                },
                {
                     xtype: 'sliderfield',
                     label: '5mi',
                     value: 50,
                     name: 'radius',
                     minValue: 1,
                     maxValue: 100,
                },
    
    
               ]
            },
             
            {
                xtype: 'button',
                ui: 'round confirm',
                text: 'Save',
                itemId: 'submit'
    
    
            }
            ]
        }
    });
    is not returning a value for the slider in my form submit handler:
    Code:
     onSubmitButtonTap: function(el) {
            var a = this;
            var f = this.getForm();
            f.submit({
                waitMsg: {
                    message: 'Hold on...',
                    cls: 'loading'
                },
                method: 'POST',
                success: function(frm, res) {
                
                    //this shows both fields but the radius one is always null
                    var v = frm.getValues();
                    console.log(v)
                }
            });
    I think I can implement a workaround by assigning the value on change to a hidden field but...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Answers
    3489
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This bug has been reported as the thumb dragging isn't setting the value and will get fixed of course.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2009
    Posts
    7
    Vote Rating
    0
    jimrising is on a distinguished road

      0  

    Default still an issue with sencha designer 2.

    still an issue with sencha designer 2.


    has this been resolved yet? i'm trying to get the slider to return values in sencha designer 2 beta, and I've been unable to.

Thread Participants: 2