Calculating field values in InfoPath based on the values of other fields

With InfoPath, we can perform calculations automatically when users input information. For instance, in an expense report form, we can automatically calculate the sum of the items as each one is entered. In addition, we can calculate information with non-numeric information. For instance, we can create a quiz that automatically calculates the score when the user submits the form.

In this recipe, we will create a field that automatically calculates the sum of two other fields.

How to do it...

Follow these steps to create a field that automatically calculates the sum of two other fields:

  1. Create a new form template or open an existing one in Microsoft InfoPath Designer 2013.
  2. Add ...

Get SharePoint 2013 WCM Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.