Shared Email Templates
Allow only specific values in custom input fields for Outlook emails
In this article
If your templates contain custom input fields and you want to ensure that only allowed values are entered or selected, you can use regular expressions.
When creating a custom input field with the WhatToEnter macro in a template, switch to the Advanced tab.
Under Validate with regex, enter a regular expression to specify the pattern that the user input must match.

Select OK.
Save the template.
When you or your teammates insert such a template into an email message, the values entered or selected in the pop-up dialog will be checked against the regular expression you’ve specified. If a value doesn’t match, it won’t be inserted.
