View Full Version : autoCreate is not working in 4.1for textField

3 Aug 2012, 1:56 AM
Hi all,
I am trying to limit the textFiels and numberFiels to some character in form panel.
After reading the forum I got some code like
autoCreate : { //restricts user to 20 chars max, cannot enter 21st char
tag: "input",
maxLength : 20,
type: "text",
size: "20",
autocomplete: "off"}
But it is not working for me, I am using ExtJS 4.1
while checking the ExtJS4.1 documentation am not able to see any config like autoCreate for textField/numberField but it is there in ExtJS 3.4.
Plse help me to find out autoCreate equalent in ExtJS 4.1

Thanks in advance.

8 Aug 2012, 10:03 AM
There is no autoCreate as you mentioned. You need to create the form, create the fields and set the properties for each field you create, or you can use defaults for common settings.