PDA

View Full Version : show fields



lek
10 Mar 2009, 7:17 AM
Hi everyone, i need your help, i need to show some text fields by dom when a combobox has exactly one value, for example the combobox have the values A, B and C, and when and just when the value of the combobox is Bthen the fields show else the fields are hidden. I dont know how to do it, please help me...

mjlecomte
10 Mar 2009, 7:24 AM
Listen to an event on the combo. Inside the handler call hide() for the fields you want to hide.

Post your code...

mjlecomte
10 Mar 2009, 7:26 AM
Suggest you post working showcase that shows your combo getting loaded with a, b, c. And then show 4 fields and your handler hiding 2 of them for example.

http://extjs.com/learn/Ext_Forum_Help#Posting_a_working_showcase