Sign in
    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.

    1. When creating a custom input field with the WhatToEnter macro in a template, switch to the Advanced tab.

    2. Under Validate with regex, enter a regular expression to specify the pattern that the user input must match.

      An example of a regular expression
    3. Select OK.

    4. 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.

    Invalid format