- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Problem - If you are getting an error "Error! Unknown op code for conditional" when generating the quote PDF.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Requirement – In this specific case, the requirement was that If the field “Hide_Discount__c” is unchecked, display the table's data else hide the table.
Solution – In this specific case, customer was using the If condition in the quote template as shown below.
If you see the mergefield "SOpportunity.Hide_Discount__c", Although its a checkbox field on the Opportunity object, it returns Yes/No on the Quote PDF instead of True/False and hence here are the changes I did to the template –
- Changed "False" to "No"
- Added the quotation mark to "No" since Yes/No is a text value.
- Removed the quotations after the False since if the value returned is a "No", it should display the table and not empty string. Please see below the final Quote template.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √