Value Expression Behavior in Mobile Forms

The value property is treated differently from other expression-backed properties because users can edit and save it.

For a new record, a value expression provides the initial calculated value and runs again when one of its dependencies changes.

For an existing record, the stored value is retained when the form opens. It can differ from the current expression result. The expression recalculates the value after a referenced dependency changes.

For example:

  1. A user enters quantity 3 and price 5. The calculated total is 15.

  2. The user changes the total to 12 and saves the record.

  3. When the user reopens the record, the stored total remains 12.

  4. If the user changes the quantity to 4 the price remains 5, the expression runs and sets the total to 20.

If users should never override a calculated value, set the element's readonly property to true.

Related Topics

General Notices