Make a quick vote 🗳 ️How do you refer to SuiteCRM extensions: add-ons or plug-ins? Click here to have your say 👈

How to open a new tab on subpanel create button click?

I need help to open the full form in new tab once click on a create button from a subpanel.

did a short search for you:

maybe that helps you get going :slight_smile:

1 Like

It helps but my problem is that I wish to open this in the new tab and not in the same window. I tried to do some JQuery but it didnt help as much.

Hi,

You need to extend layoutdefs of your supbpanel. This can be done through:
custom/Extension/modules/YourModule/Ext/Layoutdefs/nameofsubpanel.php

Replace

'widget_class' => 'SubPanelTopButtonQuickCreate'

,
to

'widget_class' => 'SubPanelTopCreateButton',

Do quick repair & rebuild.

1 Like

Hello,
Thanks for the reply. I have done that but the full form opens in the same window in stead of opening a new window.