I have the combobox in Extjs
Ext.form.field.combobox
Now i want that if someone selection option 1 or 2 then i shows another combox and hide it if some other option is selected
How can i do that
Initially keep your combobox2 hidden.
combobox2
In select listener of combobox1 make:
combobox1
if(combobox1.getValue() ==1 || combobox1.getValue() ==2) combobox2.show(); else combobox2.hide(); form.doLayout();