A Formula field calculates its value from other fields in the form, for example an area from a width and a height, or a cut length minus a deduction. The result updates by itself as the form is filled in. Screenshots in this article are from the tablet layout.
Add a formula field
Press and hold the form's header and tap Add Form Fields.
-
Tap Formula. The Formula Editor opens.
Type a name in Field Name. If you leave it blank, BOLDR names it Formula plus a number.
Build the expression (see below).
Tap Save.
The formula field is added to the end of the form and shows its result as soon as the fields it uses have values.
Build the expression
The bar above the keypad is always there: AC (clear everything), +, -, ×, ÷, (, ), and , (to separate values inside functions such as min()). Swipe the keypad left or right to switch between four pages:
Fractions: keys for the whole number, numerator, and denominator, plus ± and Del.
Numbers: 0–9, ., ±, %, and Del.
Functions: sin, cos, tan, sinh, cosh, tanh, √, x^2, x^3, 1/x, π, %, round(), floor(), ceil(), abs(), min(), max(), and average().
Fields: the form's Measurement, Angle, Number, Conversion Table, and other Formula fields. Tap one to add it. A field shows with its letter and name, such as B1. Width.
Each tap adds to the end of the expression. Del removes the last item. For example, to get a window's area, tap the Width field, ×, then the Height field.
Save stays dimmed until the expression is complete and valid, for example until every bracket is closed. BOLDR doesn't show an error message, so check the expression if you can't save.
How values are used
A Measurement field goes into the formula as the number shown in that field's unit: its locked unit if it has one, otherwise your default unit. Numbers you type are used as they are. To make sure a formula such as Width - 1/8 means the same thing for everyone, lock the units of the Measurement fields it uses. See Changing Units and Fraction or Decimal Display.
Angles are in degrees, and sin, cos, and tan work in degrees.
A Conversion Table field uses the value of the row picked in the form.
If any field the formula uses is empty, the result stays empty.
A formula can use up to 26 fields.
Show the result as a fraction or decimal
Tap the formula field's name on the left of its row.
Tap Result Display.
Choose Default (unit format), Decimal, or Fractional.
Change a formula
Tap the formula field's name and tap Edit Field. The Formula Editor opens with the current expression. Make your changes and tap Save.
Good to know
If you leave the Formula Editor with the back arrow, your changes are discarded without a warning. Tap Save first.
Forms created together share their fields, so a new formula field appears in all of them and calculates from each form's own values.
You can't type into a formula field or fill it with a reading.
"Failed to save formula": the field wasn't created. Try again.
Group formulas, which adjust every measurement in a regular group, are a different feature. See Group Summary and Group Formulas.
Comments
Please sign in to leave a comment.