$form = new Varien_Data_Form(); $config = $form->addField('example_field', 'text')->getFieldConfig();
$fieldset = new Varien_Data_Form_Element_Fieldset(); $fieldset->addField('example_field', 'text'); $config = $fieldset->getElement('example_field')->getFieldConfig();In this example, a new `Varien_Data_Form_Element_Fieldset` object is created and a new form field element of the text type is added to the fieldset using the `addField()` method. The configuration options for the new form field element are then retrieved using `getFieldConfig()`. The `getFieldConfig()` method is a part of the `Varien_Data_Form_Element_Abstract` class which is a part of the Magento package library.