This article explains what the Concat() function is and provide examples of how it can be used with the binding syntax in smart templates.
Prerequisites
|
What is the Concat() function?
Concat() is a function that joins two pieces of text together.
Concat() logic
Syntax | {{Concat(Value1, Value2)}} |
---|---|
Input | Text |
Output | Concatenated text |
ImportantIf the output should be a combination of more than 2 fields and/or if you want to use a separator in between the values, the StringJoin() function should be used. |
Concat() function examples
Example 1
Using the Concat() function to join two pieces of plain text.
Binding | {{Concat("Hello", "World")}} |
---|---|
Output | "HelloWorld" |
ImportantPlain text must be enclosed in quotation marks. |
Example 2
Using the Concat() function to join two values originating from the User Profile.
Binding | {{Concat(UserProfile.Team, UserProfile.Initials)}} |
---|---|
Input | Team = "HR", Initials = "JD" |
Output | "HRJD" |
Example 3
Using the Concat() function to join two values originating from "Subject" and "Title" questions originating from the response form.
Binding | {{Concat(Form.Subject, Form.Title)}} |
---|---|
Input | Subject = "Hello", Title = "World" |
Output | "HelloWorld" |
Comments
Article is closed for comments.