O'Reilly logo

SharePoint 2013 WCM Advanced Cookbook by John Chapman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required