Hi all,
I’m using custom record actions in the account detail view with selectModals (for either Quotes or Invoices).
Now I’d like to filter the items in these modals to the ones related to the currently viewed record (account).
I think it should be possible doing something like this, but I’m not quite sure and also I wouldn’t know how to get the current record’s id in the php file (/opt/bitnami/suitecrm/extensions/defaultExt/config/modules/Accounts/recordview/actions/create-pdf.php)
$recordActions['create-pdf-quote'] = [ 'key' => 'account-create-pdf', 'labelKey' => 'LBL_CREATE_PDF_QUOTE', 'asyncProcess' => 'true', 'modes' => ['detail', 'edit'], 'params' => [ 'template' => 'quote', // Allow selecting a record from a modal before running action 'selectModal' => [ 'module' => 'AOS_Quotes', 'default_filter' => ['billing_account_id' => $record->id] ] ] ];
Thanks for any suggestions!
BR,
Chris