AnsweredAssumed Answered

How can I add new input fields to the convert lead page for the leads module in sugar 6.5?

Question asked by Rodolfo Tuble on Jul 15, 2016

I already know that you can add text in "modules\Leads\metadata\convertdefs.php" inside this array:

 

$viewdefs['Accounts']['ConvertLead'] = array(

    'copyData' => true,

    'required' => true,

    'select' => "account_name",

  'default_action' => 'create',

    'relationship' => 'accounts_contacts',

    'templateMeta' => array(

        'form'=>array(

            'hidden'=>array(

                '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',

                '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',

                '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',

                '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',

                '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">'

            )

        ),

        'maxColumns' => '2',

        'widths' => array(

            array('label' => '10', 'field' => '30'),

            array('label' => '10', 'field' => '30'),

        ),

    ),

    'panels' =>array (

      //you can add the text here

        'LNK_NEW_ACCOUNT' => array (

            array (

                'name',

                'phone_office',

            ),

            array (

                'website',

            ),

            array(

                'description'

            ),

        )

    ),

);

 

But my problem is I also need to add text fields, and I don't know where and how do I add them.

Outcomes