I want to add custom button near Cancel and Save button which should be visible when I click on create option.

I want to add custom button near Cancel and Save button which should be visible when I click on create option. 

I am able to add button on edit record as well as view record but not on create record.

Please help me here .

Sugar CRM version used : 10.3 Enterprise

Parents
  • Hi,
    create a file in the path /custom/modules/<module>/clients/base/views/create/create.php

    in the create.php file

    $viewdefs['<module>']['base']['view']['create']['panels'][0]=array (

    'name' => 'panel_header',
    'header' => true,
    'fields' =>
    array (
    0 =>
    array (
    'name' => 'picture',
    'type' => 'avatar',
    'width' => 42,
    'height' => 42,
    'dismiss_label' => true,
    'readonly' => true,
    ),
    1 => 'name',
    2 =>
           array(
     'type' => 'rowaction',
      'event' => 'button:validate_postal_code:click',
     'name' => 'validate_postal_code', 
    'label' => 'LBL_VALIDATE_POSTAL_CODE',
     'acl_action' => 'view',),
    ),
    ),
    hope it will be useful.
Reply
  • Hi,
    create a file in the path /custom/modules/<module>/clients/base/views/create/create.php

    in the create.php file

    $viewdefs['<module>']['base']['view']['create']['panels'][0]=array (

    'name' => 'panel_header',
    'header' => true,
    'fields' =>
    array (
    0 =>
    array (
    'name' => 'picture',
    'type' => 'avatar',
    'width' => 42,
    'height' => 42,
    'dismiss_label' => true,
    'readonly' => true,
    ),
    1 => 'name',
    2 =>
           array(
     'type' => 'rowaction',
      'event' => 'button:validate_postal_code:click',
     'name' => 'validate_postal_code', 
    'label' => 'LBL_VALIDATE_POSTAL_CODE',
     'acl_action' => 'view',),
    ),
    ),
    hope it will be useful.
Children
  • sorry but it didn't work it out . I guess this approach is for older versions. 

    I don't have create folder inside my view folder for sugar 10.3 enterprise.

    Please suggest if any other way toadd button on create view.