> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add/remove watermark

> The Add/remove watermark rule stamps or clears watermark text on a SharePoint document or file upload, referencing it by URL tokens or the editor.

Add/remove watermark lets you add a watermark to a document, or remove a watermark that was added to a document previously.

<img src="https://mintcdn.com/flowforma/29tXFCtk1ynp2c5R/images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-1.png?fit=max&auto=format&n=29tXFCtk1ynp2c5R&q=85&s=0eb8468b0995141302269af0f12867e1" alt="Add/remove watermark rule configuration" width="628" height="586" data-path="images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-1.png" />

## Title

The first part of the business rule lets you define a **title** for your rule and select the event on which it operates. The default title is the standard **FlowForma** rule name; change it by deleting the text and entering your own.

In the **event** field you determine when the rule is executed. For a flow this can occur when the form is loaded, started, or completed. For a step this can occur when the step is started, saved, or completed. For questions it can occur when the question is updated.

## Rule condition(s)

The second part of the business rule lets you set conditions. These are not required, but if entered they control when the rule is executed in relation to other items in the form.

## Rule actions

In the **SharePoint Document URL** you enter the location of the document that you wish to add a watermark to, or remove a watermark from.

You can do this in two ways, depending on how the document was created and where it's stored.

1. Where the document was created using the **generate document** rule, or is a standard document stored in a SharePoint library.

You enter the URL of the document library where the document is saved. There are a number of tokens you can use when entering this URL. Use these when referencing documents generated by the **generate document** rule, as their URLs change relative to the form where they're created.

These tokens are:

* **FormID:** the ID of the form used when the document was created
* **StepID:** the ID of the step where the document was created
* **FlowTitle:** the title of the flow used where the document was created
* **StepTitle:** the title of the step used where the document was created
* **FormTitle:** the title of the form used where the document was created

For the URL to be added, the document must have been created in the same or a previous step as the rule, using the **generate document** business rule.

* If you use the **default document library** when a document is created, the URL you need to insert to open the document in Word is: `http://servername/sites/sitename/FormDocuments/Form{FormID}/steptitle/Form{FormID}.docx`
* In the flow properties, you may decide to add a **form prefix**. If so, you need to replace the word "Form" with the form prefix in the link. Let's assume the form prefix is TRY; the URL becomes: `http://servername/sites/sitename/FormDocuments/TRY{FormID}/steptitle/TRY{FormID}.docx`
* If you generate the document from the template and decide to add a **document suffix**, you'll need to add the suffix after "FormID" in the link. Following the previous example, if the suffix is "TEST", the URL becomes: `http://servername/sites/sitename/FormDocuments/TRY{FormID}/steptitle/TRY{FormID}TEST.docx`

<img src="https://mintcdn.com/flowforma/29tXFCtk1ynp2c5R/images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-2.png?fit=max&auto=format&n=29tXFCtk1ynp2c5R&q=85&s=5dd7f34be324df3ec27924ceac7e1509" alt="Watermark rule action configuration" width="596" height="268" data-path="images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-2.png" />

2. Where the document has been uploaded to the form using a **file upload question**.

Click **Editor** to select the file upload question that will contain the document you want to add or remove the watermark from. The editor displays all the steps in the flow that contain a file upload question, and the file upload questions on each step.

<img src="https://mintcdn.com/flowforma/29tXFCtk1ynp2c5R/images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-3.png?fit=max&auto=format&n=29tXFCtk1ynp2c5R&q=85&s=30c8c926df06496b902f896b1e7e5c6f" alt="File upload question editor" width="628" height="254" data-path="images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-3.png" />

* Select the relevant action: either **Add watermark** or **Remove watermark**.
* Enter the text you want to appear as the **watermark text**.

<img src="https://mintcdn.com/flowforma/29tXFCtk1ynp2c5R/images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-2.png?fit=max&auto=format&n=29tXFCtk1ynp2c5R&q=85&s=5dd7f34be324df3ec27924ceac7e1509" alt="Watermark action and text configuration" width="596" height="268" data-path="images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-2.png" />

Below is an example of how the watermark appears on a document.

<img src="https://mintcdn.com/flowforma/29tXFCtk1ynp2c5R/images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-4.png?fit=max&auto=format&n=29tXFCtk1ynp2c5R&q=85&s=f87a8291e20768955a8194be2c8c9ee6" alt="Example of a watermark applied to a document" width="749" height="585" data-path="images/product/creating-flows/business-rules/business-rule-types/communications-rules/add-remove-watermark/add-remove-watermark-4.png" />

* **Stop execution**: if stop execution is enabled and this rule is executed, no other rules are executed.
* **Enabled**: rules aren't saved to a list like questions and steps are, so if you want to stop a rule executing without deleting it, toggle this option to enable or disable the rule.
* **Enable audit**: if checked, a record is added to the audit trail when this rule is executed. This option is available when the Compliance feature pack is activated.
