Use {{capitalize}} to capitalize the first letter of the very first word in a string. You can pass a hard-coded string or a field from the record.
{{capitalize field}}
-
field: A string or field containing text (e.g.,
"lorem ipsum"orrecord.description).
-
Capitalizing a record field
{{capitalize record.day}}If
record.dayis"today is the day!", the output becomes"Today is the day!". -
Hard-coded string
{{capitalize "hello world"}}Results in
"Hello world". -
Partial sentence fields
{{capitalize record.type}}If
record.typeis"dog", the output is"Dog".
Tip
-
This helper only affects the first word; subsequent words remain unchanged.
-
If your text starts with a space or punctuation, the first letter recognized might not be what you expect—confirm that the string starts with a letter.
-
For full title capitalization (each word in a string), consider using
{{capitalizeAll}}instead.