Use {{join}} to concatenate multiple fields or literal strings with a chosen delimiter between each item. You can supply any number of items to join.
{{join delimiterField field1 field2 ...}}
-
delimiterField: The delimiter to place between each value (e.g.,
"-","/",","). -
field1, field2, ...: One or more values or references to join.
-
Joining literal strings
{{join "-" "unicorn" "ponies"}}Produces
"unicorn-ponies". -
Combining record fields with a comma
{{join "," record.band1 record.band2 record.band3}}If
record.band1is"Iron Maiden",record.band2is"DIO", andrecord.band3is"(old)Metallica", the result is"Iron Maiden,DIO,(old)Metallica". -
Using a different delimiter
{{join "/" record.folder record.subfolder record.filename}}For
record.folder = "root",record.subfolder = "images", andrecord.filename = "logo.png", you get"root/images/logo.png".
Tip
-
You can pass in as many items as needed after specifying the delimiter.
-
If any of the items are arrays, each element will be joined using the specified delimiter.
-
Make sure your fields resolve to strings or can be converted to strings; otherwise, you may see unexpected results.