(Please note that older articles might not render correctly in mobile view.)
- Form Builder
Calculations are used to add items like invoice totals, inspection scores and other calculated values in mobile forms. Use calculations to total work hours, find average inspection scores, and calculate costs within forms.
An example of a Calculation on an iOS device is shown below:
In the Form Builder, the Calculation question appears as shown below:
The Question Edit screen for the Calculation question type has three tabs: General, Properties, and Help Options. This article will go through each of the tabs.
The Unique ID is the reference for the question. For more information on Unique IDs, read: Overview: Unique IDs. It can either be auto-generated based on the question text, or customized.
Data Types are the kind of information your mobile users will be putting into these questions. Setting a data type forces users to enter the kind of information you want in the correct format. This also ensures that the entered data can be used elsewhere in your business process, whether that's by other questions in the form, or in a data destination.
The Calculation question type supports the following data types:
Restrictions control how your mobile users interact with a question. They can be set on the question itself, or controlled by Conditional Logic.
|Required||Read-Only||Hidden on Device||Hidden in Reports|
Calculations are Read-Only by default, as the mobile user cannot interact with them. As the user cannot interact with the question, and the question is always answered ("0" is an answer), the question cannot be set to Required.
The calculation builder offers an easy, intuitive way to build your calculation questions. Calculation questions can only use information from numeric data type questions that come before it.
It allows you to:
- select appropriate, numeric data type questions from a dropdown.
- filter questions based on text typed in the calculation field.
- add constants to calculations by typing them in (press "Enter" to select them).
- view any errors as you work on the calculation, making it easy to correct.
- set a Fallback/Default Value by clicking on the question in the calculation builder. This is the value that will be used if the question is not answered. The default setting is "0". If you are dividing by a question, the default value for the question should be set to "1" to avoid "divide by zero" errors.
Data Type Properties
Properties allow you to set up your question in various ways. Question Properties change depending on the data type chosen.
Answer Exceptions are used to categorize problems identified during the course of a field technician's work as the user completes a form. For example, if the total cost of parts on an Estimate form is outside of a certain range, the Calculation question can be highlighted to warn the user of a potential data entry error, or an excessive cost estimate.
For more information on setting up Answer Exceptions, please read: Answer Exceptions
Additional Comments are useful for when certain answers from a user require further information, like a comment or reason. Using the same example as above, if a user adds an excessive number of parts to an Estimate form, a comment could be useful to provide additional details on why that number of parts is necessary.
For more information on configuring Additional Comments on questions, please read: Additional Comments on Questions
Adding "Help" content to forms gives mobile users access to support and other resources out in the field. Help content is available to users through a button embedded beside a question. Any question in the form can include a link to Youtube videos, web pages, or HTML-formatted work instructions.
For more information on Help Content, please read: V2 Forms: Adding Help Content to Questions