Sunday, 2 June 2013

Adding custom fields in edit and detail view through manifest

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.

2 comments:

  1. Can you add multiple fields to the same module?

    ReplyDelete
  2. Yes it is possible, just add another set of array, example,

    array(
    'additional_fields' =>
    array(
    'Contacts' => 'field_1'
    ),
    ),
    array(
    'additional_fields' =>
    array(
    'Contacts' => 'field_2'
    ),
    ),

    ReplyDelete

Urdhva Tech Pvt. Ltd. Powered by Blogger.

Urdhva Tech

My Photo
SugarCRM Consultants Contact us at contact@urdhva-tech.com Skype : urdhvatech

Search This Blog

Loading...

Stay connected Socially

     

Total Pageviews

Popular Posts