Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    63
    Vote Rating
    1
    stevanicus is on a distinguished road

      0  

    Default Hidden field returns string after boolean is set

    Hidden field returns string after boolean is set


    Ext version tested:
    • Ext 4.1.1rc1
    Browser versions tested against:
    • FF
    Description:
    • Set multiple values using MyForm.getForm().setValues( [object] )
    Steps to reproduce the problem:
    • see test case
    The result that was expected:
    • boolean to be returned
    The result that occurs instead:
    • string is returned
    Test Case:

    http://jsfiddle.net/dbVdJ/5/

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,160
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This isn't a bug. A hidden field is just a text field with input type set to hidden. It would be the same as doing:

    Code:
    textfield.setValue(1);
    console.log(textfield.getValue());
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    63
    Vote Rating
    1
    stevanicus is on a distinguished road

      0  

    Default


    Ok - fair enough. Thanks for the response

Thread Participants: 1