Use {{capitalizeAll}} to capitalize the first letter of every word in a string. You can pass a hard-coded string or a field from the record.
{{capitalizeAll field}}
-
field: The string or field containing text (e.g.,
"john doe"orrecord.addressLine1).
-
Capitalizing a record field
{{capitalizeAll record.lastName}}If
record.lastNameis"doe smith", it outputs"Doe Smith". -
Capitalizing a literal text
{{capitalizeAll "the quick brown fox"}}Results in
"The Quick Brown Fox". -
Formatting product titles
{{capitalizeAll record.productTitle}}If
record.productTitleis"new release item", you get"New Release Item".
Tip
-
Punctuation or special characters can split words differently; verify the output if your text includes unusual symbols.
-
This helper is case-insensitive; it only guarantees the first letter of each word is uppercase. All other letters remain unchanged.