The capitalizeAll helper capitalizes the first letter of every word in a string, leaving all other characters unchanged. Use it to format names, titles, or labels where each word should start with a capital letter.
Syntax
{{capitalizeAll field}}
field -- The string to capitalize. Required. Accepts a literal string or field reference.
Examples
Capitalize a full name
{{capitalizeAll record.lastName}}
Input: record.lastName is "doe smith"
Output: Doe Smith
Capitalize a literal string
{{capitalizeAll "the quick brown fox"}}
Output: The Quick Brown Fox
Format a product title
{{capitalizeAll record.productTitle}}
Input: record.productTitle is "new release item"
Output: New Release Item
Usage notes
- Only the first letter of each word is capitalized. All other letters remain unchanged -- lowercase letters in the middle or end of a word are not affected.
- Words are split on spaces. Punctuation or special characters may cause unexpected word boundaries -- verify output if your text includes unusual symbols.
- To capitalize only the first letter of the entire string, use the capitalize helper instead.