Friday, April 5, 2019

Salesforce CPQ Lightning Template Content Font Color

Somehow I was involved in trying to change the font color in Salesforce CPQ template content. Seems easy but it is not working the way we want.

We selected HTML as the content type and it comes with a nice rich text editor. As we change the font color, it looks great on the page. However, when we attach the template content to the quote template and preview the quote with that template, couple of things occurs:

  • The font color is gone and reflected back to black
  • It puts the next words which is supposed to be different color in a new line
We double-checked the HTML and can't find anything wrong with it. So I decided to check which engine generates the quote preview PDF and found out that it is using Apache FOP. The fun thing is it Apache FOP doesn't support HTML inherently, but it does support XSL, so

No comments:

Post a Comment