Subpanel custom row action button on (version 6.5)


I would like to add a row action custom button on subpanel.
Has anyone any idea using Sugarrm 6.5?

Stil using sugar 6.5? It’s not even compatible with php7.

You will have to create your own button.

  1. custom/include/generic/SugarWidgets/SugarWidgetSubPanelYourNameButton.php
    In this file the class SugarWidgetSubPanelYourNameButton extends SugarWidgetField {
    Copy Paste include/generic/SugarWidgets/SugarWidgetSubpanelEditButton and modify names and the logic in display()

  2. in your subpanel field list add
    ‘yourname_button’ => array(
    ‘vname’ => ‘LBL_YOUR_LABEL_BUTTON’,
    ‘widget_class’ => ‘SubPanelYourNameButton’,
    ‘width’ => ‘2%’
    Please not that the key yourname_button needs the _button