> For the complete documentation index, see [llms.txt](https://docs.cw.crisisworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cw.crisisworks.com/security-and-support/faqs/troubleshooting/system-administration/mail-merge-your-form-could-not-be-saved.md).

# Mail Merge: Your form could not be saved

## Problem

When saving an HTML [Mail Merge Template](/system-administration/configuring-the-system/mail-merge-templates.md), you receive this message:

> Your form could not be saved

## Explanations

### HTML Problems

Problems with the HTML, such as syntax or structure errors can cause this.

#### Solution

Check that the HTML is properly structured and error free as per the [Merge Template Reference](/security-and-support/technical-reference/merge-template-reference.md).

### Security Block

Our Web Application Firewall (WAF) monitors for "HTML injection" threats, and it has mistakenly detected a threat in your HTML/CSS.

#### Solution

* Avoid inline styles, particularly those that try to insert hidden text or those that re-position text , and ensure that your template code meets the requirements set out in the [Style your template with CSS](/security-and-support/technical-reference/merge-template-reference/style-your-template.md).
* Keep your HTML template as simple as possible using semantic elements and classes
* Avoid defining styles using a `<style>` tag. If you need more CSS classes, you can define them in the Advanced CSS field instead

## More Help

If you've read through these instructions and are still stuck [contact the Service Desk](/security-and-support/maintenance-and-support/accessing-support.md) we can assist you to identify potential problems with the template/s.

Send us a copy of your HTML via the service desk and we can help to resolve the issue.


---

# 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://docs.cw.crisisworks.com/security-and-support/faqs/troubleshooting/system-administration/mail-merge-your-form-could-not-be-saved.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.
