Skip to main content

Create Templates in S-Docs

Zuora

Create Templates in S-Docs

This article will help you understand how to configure S-Docs templates and modify their appearance using the S-Docs template editor. By following the steps outlined below, you will understand how to customize S-Doc templates and enhance their visual appeal.

S-Docs is currently available for users who have adopted the new CPQ X Quote Studio UI.

You must configure and activate at least one template before using S-Docs.

Take the following steps to create a template:

  1. Navigate to the S-Docs app in the Salesforce UI.
  2. Click the S-Docs Templates tab. This page is where all of your templates will appear.
  3. Click New to create a new template. The resulting page is the template creation page.

clipboard_ea633883fa14991a30d55cff2db4db468.png

 See the following table for the description of each field:

Field Description
Template Name Enter a template name. This field is required.
Description Optionally add a description.
Document Version Optionally use this field to track any internally used version number (or date) for this template.
Template Format Pick an output format. Select PDF.
Related to Type Pick an object from the picklist. Select Zuora Quotes.
Available for Use Keep this box checked (it is checked by default). This ensures that the template is visible for new document creation.
Initially Visible Keeping this box checked (it is checked by default) will make this template visible on the initial load of the document creation page based on the object type. Typically, you want to set this checkbox for the 10 most used templates for each object type.
Allow Edit If you want users to be able to edit this document after it has been generated, check this box.
  1. Once you've completed the configuration, click Save. The template is now ready for editing.

See the Edit S-Docs template section below for details.

Edit S-Docs template

The template editor provides a powerful interface for creating attractive, data-driven documents. This section explains how to edit the template body in Source and adjusting page settings. 

Edit template in source editor

You can edit the HTML and CSS that represent your template by clicking the Source button in the WYSIWYG editor.

In the source editor, you cannot use any of the buttons on the toolbar; they are reserved for use in the WYSIWYG editor.

To edit the template, take the following steps:

  1. Go to the S-Docs Template tab and select the template you want to edit. 
  2. Click on the Template Editor button.

clipboard_e9bfb91c114a320bb3bf6354506bfa648.png

  1. In the resulting screen, click the Source button in the template body as shown below.

clipboard_e77d99ea37e6b1737776652abecf2a917.png

  1. Copy and paste the S-Docs Sample Template Code for the new quote template in the Source editor. 
  2. Click Save & Close.

Edit template Page Settings

When there are a large number of columns, the page may not be able to display all of them. In such cases, we recommend selecting "Custom" as the layout under the Page Settings option and adjusting the columns accordingly to fit your needs.

To change the page layout of your template, follow these steps:

  1. Go to the S-Docs Template tab and select the template for which you want to change the layout.
  2. Click on the Template Editor button.
  3. In the Template Editor screen, locate and click on the Page Settings option.
  4. In the Page Settings, you will find options to change the layout. Select "Custom" to manually edit the Width and Height fields according to your requirements.
  5. Click Save.

clipboard_e4e83db6140a83f0946853a8a9c13f815.png

To enhance your proficiency in using the S-Docs template editor and utilize all of its features, we recommend referring to the Overview: The S-Docs Template Editor guide provided by S-Docs. This comprehensive resource covers all the buttons, tabs, and functionalities of the template editor, enabling you to maximize its efficiency and effectiveness in your document customization endeavors.