PDA

View Full Version : [CLOSED] Hidden field returns string after boolean is set



stevanicus
20 Nov 2012, 8:34 AM
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/

evant
20 Nov 2012, 1:18 PM
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:



textfield.setValue(1);
console.log(textfield.getValue());

stevanicus
20 Nov 2012, 2:42 PM
Ok - fair enough. Thanks for the response