> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/enhanced-template-editor/configuring-settings-for-enhanced-templates.md).

# Configuring Settings for Enhanced Templates

S-Docs has introduced new global configuration settings designed specifically to simplify and automate processes within enhanced template editing and [e-Signature](/sdocs/s-docs-e-signature/configure-s-docs-e-signature-and-global-settings.md) workflows. These options allow administrators to establish organization-wide defaults for document formatting, naming conventions, file handling, and signing workflows.

{% hint style="info" %}
These settings are located within the *S-Docs Settings* page. They are entirely separate from the classic S-Docs Setup menu, which controls configuration for the classic editor experience.
{% endhint %}

### Getting Started

To access these configurations

* Navigate to the Lightning menu within the S-Docs application in Salesforce.
* Select the **S-Docs Settings** page.

***

### Global Template Settings

The *Template Settings* tab allows you to define formatting standards and file management behavior across all document generation workflows.

<figure><img src="/files/TzXIJEVtdgEPVhWWx9Ec" alt=""><figcaption></figcaption></figure>

#### Page Setup & Formatting

* **Page Size:** Select a standard page format from the dropdown menu. Out-of-the-box configurations include *US Letter (8.5 x 11 in)*, *A3*, *A4*, and *A5*.
* **Orientation:** Set the default document orientation to *Portrait* or *Landscape*.
* **Margins:** Customize individual default boundaries by entering unique values for the *Top*, *Bottom*, *Left*, and *Right* margins. If left unmodified, margins default to 1" on each side.

***

<figure><img src="/files/jLpdodanNY7jdLfuKnuE" alt=""><figcaption></figcaption></figure>

#### File Naming & Automation

* **File Name Format:** Define how documents and templates are automatically named upon generation. Leverage static and dynamic variables (merge fields) to define file naming conventions that automatically populate record-specific data into the final file name.

***

<figure><img src="/files/WzuyFDjfk8gMhzq7eo2X" alt=""><figcaption></figcaption></figure>

#### Attachment Behavior

* **Create Salesforce Attachment and Link to Record:** Enable this option to automatically create and link generated documents directly to the corresponding Salesforce record. These are uploaded and stored securely as Salesforce Files.
* **Delete related Salesforce attachment upon S-Doc Deletion:** Toggle this setting to automatically delete related Salesforce Files whenever a parent S-Doc record is deleted, keeping your org organized and increasing productivity.

***

### Template Level Setting Overrides

You can override global configuration settings for individual templates within the template editing experience. To access these options, click the settings icon within the template editor to open the document settings menu.

From this menu, you can customize the following template-specific properties:

* **Page Settings:** Adjust the page layout, dimensions, and margins for the specific template. These options reflect the page properties available in your global settings.
* **Document settings:** Customize attachment and file options, including the file name format.
* **Salesforce file deletion:** Configure whether related Salesforce files are automatically deleted when an S-Doc is deleted.

{% columns %}
{% column %}

<figure><img src="/files/xZsUuP4zJaE1swQV7tzU" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

* **Page Settings:** Adjust the page layout, dimensions, and margins for the specific template. These options reflect the page properties available in your global settings.
* **Document settings:** Customize attachment and file options, including the file name format.
* **Salesforce file deletion:** Configure whether related Salesforce files are automatically deleted when an S-Doc is deleted.
  {% endcolumn %}
  {% endcolumns %}

***

#### **Switching to the Classic Editor**

{% columns %}
{% column width="50%" %}

<figure><img src="/files/PTLBKeGIFy23JhoLsAQ3" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
At the very bottom of the template settings menu, there is a button that allows you to switch back to the classic S-Docs editor.
{% endcolumn %}
{% endcolumns %}

{% hint style="warning" %}
**Important:** Converting a template back to the classic editor is a one-way conversion. Once converted, you cannot return that template to the enhanced editor.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/sdocs/enhanced-template-editor/configuring-settings-for-enhanced-templates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
