Articles in this section

How to join two pieces of text together using Concat()

About this article

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

 

 
  • If 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.

 
  • Plain text must be enclosed in quotation marks.

 

Binding {{Concat("Hello", "World")}}
Output "HelloWorld"

 

Example 2

Using the Concat() function to join two values originating from the user profile.

Syntax {{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.

Syntax {{Concat(Form.Subject, Form.Title)}}
Input Subject = "Hello", Title = "World"
Output "HelloWorld"

 

Related articles

 

 

preview priority order tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.