Jump to content

Show the configuration values in the text field of form


tijojoel

Recommended Posts

Hi,

I had created a form in the controller of my module. Form:-


public function renderCustomerForm()
{
    $this->fields_form = array(
        'legend' => array(
            'title' => $this->l('Customer  Settings'),
            'icon' => 'icon-time'
            ),
        'input'=>array(
            array(
                'type' => 'text',
                'label' => $this->l('BusinessCustomerFlag (Customer)'),
                'name' => 'C_BUSINESS_FLAG',
                'lang' => false,
                'required' => true
                ),
            array(
                'type' => 'text',
                'label' => $this->l('Name (familyname)(Customer/Name)'),
                'name' => 'N_TYPECODE_FAMILY',
                'lang' => false,
                'required' => true
                ),
           
            ),
        'submit' => array(
            'title' => $this->l('Save'),           
            'name' => 'submitCustomer',            
            'icon' => 'process-icon-save'  
            )
        );
I am saving this values in configuration table. I don't know how to retreive it and show in the form. Please some one guide on this will be really helpful.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...