Others

Concatenate Fields in an InfoPath 2013 SharePoint Form

Steve KSteve K Nov 25, 2026 868 views

Question details

Combine SharePoint form fields or user information into a single value in InfoPath 2013.

How to Concatenate Fields in an InfoPath 2013 SharePoint Form
Product
Microsoft InfoPath 2013 and SharePoint
Device & OS
not provided
Scenario
Automatically create a title or identifier from multiple form fields or the current user name.
Observed behavior
The desired result is a single form field populated with the combined value.
Before you start

Open the SharePoint form template in InfoPath Designer 2013 and identify the source fields and destination field. Check whether the SharePoint item ID is available when the rule will run.

Solution 1Recommended

Use an InfoPath rule to concatenate form fields

Set a destination field to a combined value when a button is clicked or another rule condition is met.

1
Select the rule trigger

In InfoPath Designer, open the form template and select the button or control that should trigger the update. Open the Rules pane and add an Action rule.

2
Choose the destination field

In the rule, add a Set a field's value action and select the destination field, such as Title or NAME.

3
Build the formula

Next to Value, click the formula button (fx). Use Insert Function to add concat, then use Insert Field or Group to select the source fields. Add literal text such as spaces or hyphens between the fields as needed.

4
Preview and publish

Click Preview, enter test values, and trigger the rule. Verify the combined value and field types, then publish the form to SharePoint.

Use an InfoPath rule to concatenate form fields
Check the item ID timing: A SharePoint-generated item ID may not be available until the item is first saved. If your formula uses the ID, ensure the rule runs after the ID is available.
Free Microsoft Office alternative

Work with Office documents using WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. It can help you move everyday documents and spreadsheets between suites, but it does not replace InfoPath rules or publish SharePoint forms.

Work with text and spreadsheet data in a familiar interfaceOpen and edit common Microsoft Office formats, including DOCX and XLSXUse a free, lightweight suite for everyday document tasksMove existing Office files into WPS Office without starting from scratch
microsoft office alternative - wps office

Frequently Asked Questions

How do I add a space between a first and last name?

In the Set a field's value formula, use concat with the first-name field, the literal text " ", and the last-name field. Select the fields through Insert Field or Group.

Can I use a SharePoint item ID in the combined value?

Yes, if the ID field is available to the form when the rule runs. A SharePoint-generated ID may not be available until the item has been saved for the first time.

Does userName() return the user's display name?

No. userName() returns the current user's account name. Preview the form and check the result in your environment before adding a domain prefix.

Where do I choose the field that receives the combined value?

In the Rules pane, add a Set a field's value action and select the destination field, such as Title, in the action's field selector.