In our salesforce org, when we click on the standard "create PDF" button on the quote object, it shows dialog box asking to "choose template" and our sales people always select the same template.

Sales people now want to know if there is a way to avoid this step so that when they click on the create PDF button the default template should be automatically selected and take them directly to PDF preview page.

How do I achieve this? Any suggestions please on where to start on this?

  • Since this is a Standard Button, you need to create a VF page according to your requirement and override this button using this page. Jun 22, 2015 at 4:11

1 Answer 1


I looked at the code for the create PDF button in the below image enter image description here and created a new custom button with that code and now it works fine and I successfully skipped the step of choosing the template.

Below is the new custom button with code from the above step:

enter image description here

  • Hi, can you please post the code of the button? thnks.
    – Klodj_Meta
    Jan 21, 2016 at 19:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .