function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanchi9Sanchi9 

Creation of Quote PDF based on a field

Hi, so I have got a requirement regarding Quotes. I have to create the quote PDF based on a certain field criteria. If the criteria is selected, a particular template should be  generated. Else  another quote should be generated. How can this be done?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Priya,

I was not able to find a similar use case but however, I think you can make use of trigger that can create pdf based on the selected value.

>>  https://corycowgill.blogspot.com/2012/02/generating-pdf-in-apex-trigger.html#:~:text=February%2026%2C%202012-,Generating%20a%20PDF%20in%20an%20Apex%20Trigger,templates%20out%20of%20the%20box.

This link has an implementation of creating a pdf from apex trigger, you can modify it to fit your usecase.

Thanks.