View Full Version : Accessing form field for setting value

15 Sep 2009, 5:15 AM

any suggestions how I can access a formpanels field and set it's value AFTER formfields defined?

I found out, the form could be accessed by panel.getForm(). But I don't found any method in the API doc, which hints to a expected functionality.


15 Sep 2009, 5:47 AM
One way is to assign the text fields with static ids and use Ext.getCmp('fieldId').setValue();
or you can use

var field = FormPanel.find('name', 'your field name');