Skip to main content

Text Helpers

Text helpers transform text content from variables or any other strings.

Text​

The main text helper exposes all of the methods available on the String built-in JavaScript object. You can use it to extract a part of text, replace characters, or split text into multiple parts.

Here are a few examples of how you can use it.

Convert a string to lowercase​

Template
Preview
full name

Convert First Name variable to lowercase​

Template
Variables (JSON)
Preview
john briskine

Convert string to uppercase​

Template
Preview
BRISKINE

Split email address and get domain​

Template
Preview
briskine.com

Replace character in text​

Template
Preview
john+briskine.com

Extract a part of text​

Template
Preview
skine Dashb

Extract first name from email address​

Get a person's first name from the TO email address. The email address must contain the first name, and can be formatted as john.doe@briskine.com or john@briskine.com.

Template
Variables (JSON)
Preview
John

Capitalize​

Capitalize the first letter of the string.

Template
Preview
Briskine dashboard

CapitalizeAll​

Capitalize the first letter of each word in the string.

Template
Preview
Briskine Dashboard