Loading

Size images in HTML Template Content for Salesforce CPQ

게시 일자: Oct 19, 2023
상세 설명
In Salesforce CPQ quote templates, images that are saved in the org as externally available documents can be used within HTML Template Content. Here is how you can set the desired size of the image:
솔루션

To set the image size:

  1. Navigate to Template Content
  2. Click the Source button in the editor. The Source displays all the underlying HTML markup that is rendered when the template is previewed or saved.
  3. Utilize an <img> HTML tag in the template content code to reference an image:
<img height="x" width="y" src="https://yourimageurlhere" />
 

In the WYSWYG editor, images can appear "stretched" or "pulled" because the aspect ratio on the image size is not maintained. Once the Quote Document is generated, however, the document generation service takes the width and then scales the image height according to the original aspect ratio. This way, the original aspect ratio of the image is maintained while still allowing the user to scale up or scale down the image accordingly. More information on referencing an image on a Salesforce CPQ Quote Document can be found here.

For additional information on setting an image size using HTML, visit W3Schools.

Knowledge 기사 번호

000382369

 
로드 중
Salesforce Help | Article