# Mail Merge: Your form could not be saved

## Problem

When saving an HTML [Mail Merge Template](https://docs.cw.crisisworks.com/system-administration/configuring-the-system/mail-merge-templates), 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](https://docs.cw.crisisworks.com/security-and-support/technical-reference/merge-template-reference).&#x20;

### 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](https://docs.cw.crisisworks.com/security-and-support/technical-reference/merge-template-reference/style-your-template).&#x20;
* 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](https://docs.cw.crisisworks.com/security-and-support/maintenance-and-support/accessing-support) we can assist you to identify potential problems with the template/s.

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