Skip to content

Email notification settings

To manage your form's email notification settings, navigate to its Settings section.

Recipients

  • You can enable/disable email notifications for your workspace's team members.
  • You can add guests to send email notifications to people outside your workspace/organization.

Email notification settings

Custom templates

You can customize the notification email template of a form.

Formspark custom email templates use the Handlebars templating language.

handlebars
<div style="text-align: left;">
  <strong>New submission:</strong>
  <div style="margin: 16px 0;">
    <strong>First name</strong>:
    {{data.firstName}}
  </div>
  <strong>Last name</strong>:
  {{data.lastName}}
</div>

Custom Handlebars helpers

The following custom Handlebars helpers have been registered for you:

NameDescriptionExample usage
capitalizeCapitalizes the first character of a string and lowercases the rest.{{capitalize "hello world"}}Hello world
nl2brConverts newlines in a string into <br> HTML tags, so line breaks display correctly in HTML.{{nl2br user.comment}}Line one<br>Line two
pluralizeReturns the singular or plural form of a word based on a count. Optionally accepts a custom plural form.{{pluralize 1 "item"}}1 item
{{pluralize 3 "item"}}3 items
{{pluralize 2 "child" "children"}}2 children
sanitizeUrlReturns the given URL only if it uses a safe scheme (http(s), mailto, tel, a relative path, or an anchor); otherwise returns #. Use it around links built from submitted data so an unsafe value can't render a clickable exploit.{{sanitizeUrl viewLink}}https://example.com (or # if unsafe)
stringifySerializes a value to a JSON string. Supports optional indentation for pretty-printing.{{stringify data}}{"name":"Alice","age":30}
{{stringify data indent=2}} → pretty-printed JSON
switch / case / defaultBlock helper for matching a value against multiple cases. Renders the content of the matching case block, or the default block if no case matches.{{#switch type}}{{#case "a"}}A{{/case}}{{#case "b"}}B{{/case}}{{#default}}Other{{/default}}{{/switch}}
titleCaseCapitalizes the first letter of every word in a string.{{titleCase "hello world from the team"}}Hello World From The Team