Generate multiple PDF templates for one record at once


Is there a way to select multiple PDF templates to print when you are in a record?

See image - could I have checkboxes next to each template and select both to print at once?

Sorry, no, I don’t think there is.

Which version of SuiteCRM are you on?

And is this the “Generate letter” option? I just want to make sure I really understood what you were referring to.

I am on:

Version 7.8.3
Sugar Version 6.5.24 (Build 509)

Yes this is “generate letter” in list view OR Actions->Print PDF.

I added an issue on gitHub:

You would have to do some changes in the code to get what you want, it’s not currently a feature.

You can ask for it in GitHub, opening an Issue and suggesting it. However I don’t think it’s likely that it will get done anytime soon, I have to warn you…

Any pointers for where I could try to add the code for it? I’m pretty new to SuiteCRM but I have been able to dig into the codebase a little bit and have made some (upgrade-safe) tweaks where needed.

And thank you for creating the issue and for the quick response!

I think that recently that pop up was modified to sort the list of templates (I am not 100% sure though).

Maybe you can search github to find the pr in which the pop up was modified and then browse thhough the files that were affected and maybe you can track were that happens.

I will do that, thank you!

Have a look here:

and here:

The list is generated starting at line 60 and/or line 115 here:

So adding the checkboxes shouldn’t be difficult.

Now you have to reverse engineer further to find where the template is used to generate the pdf.

The generated link (or better, the javascript that redirects) looks like this:

onclick=“document.getElementById(‘popupDiv_ara’).style.display=‘none’;sListView.send_form(true, ‘Contacts’, ‘index.php?templateID=33804420-dee1-a5b5-5692-594d1f044198&entryPoint=formLetter’,‘Please select at least 1 record to proceed.’);document.getElementById(‘popupDivBack_ara’).style.display=‘none’;”

Ant that entrypoint “formLetter” is registered to this file:


so that’s where you want to get the selection from the pop-up and apply it.

P.S. - when it’s done don’t forget to donate the code to the community! :slight_smile:

1 Like

Thank you both. I should have time to do this within the next week!

Hello everyone I know this topic is old.
However, I am looking for the same thing.
Has anyone found a solution since 2017?
Take care of yourself

no one ? :grey_question:

If you’re not a developer, and you really need this, consider purchasing the services of a developer to do it for you. It shouldn’t be too hard. But I think it’s too hard for someone to provide just for a Forums post reply…

Hello ,
Thank you for the feedback
Do you know a developer who can do this for me?
Thank you

I will answer you in a Private Message.