Adding custom fields in edit and detail view through manifest

sugarcrmdevelopers —  June 4, 2013

Greetings from Urdhva Tech!!

Creating your own plug-in for SugarCRM? Have custom fields in SugarCRM’s existing/OOB modules?

Yes manifest has a directive which does this job!

‘layoutfields’ => array(
        array(
            ‘additional_fields’ =>
            array(
                ‘Contacts’ => ‘<field_name>’
            ),
        ),
        array(
            ‘additional_fields’ =>
            array(
                ‘Accounts’ => ‘
<field_name>
            ),
        ),
        array(
            ‘additional_fields’ =>
            array(
                ‘<module_name>’ => ‘<field_name>’
            ),
        ),
    ),

Done!

Some issues exist, like, SugarCRM forces the field to be on both views, edit and detail. And no way you can add field in list view, except you create your own script which does it for you in post_install.

Comments are welcome!

Follow us on Twitter @urdhvatech

Glimpse of our plug-ins & products.