-
6 Dec 2012 10:52 PM #1
Unanswered: Getting value of label using foem.findField() method
Unanswered: Getting value of label using foem.findField() method
Hi,
I am using a label in a form. I want to set the value of the label dynamically. I tried using form.findField('labelName'). But it doesn't seem to work. What is the correct way to retrieve the value of the label present in the form? Using Ext.getCmp('labelId'), we can achieve this, but I wanted to use something like form.findField('labelName'). Also I observed using firebug but my form didn't show the label in the _fields property. Can there be a way to achieve this?
Thanks
-
7 Dec 2012 3:00 AM #2
Code:fldset = form.getItems().items[1]; myfield = fldset.innerItems[0]; myfield.setLabel('anything');


Reply With Quote