Persistent property

SwitchField.Persistent — Logical

Whether the field is persistent, that is, whether it retains its value between usage sessions. Only enabled fields can be persistent.

This property is a read-only property, meaning that no formula can be assigned to it. Change this property by toggling Remember value in the inspector for a field in Calcapp Creator.

Example

This formula is associated with the OnPress property of a formula button, and causes all persistent fields of the app to be reset, but only the persistent fields. FILTER is used to process all fields of the app, as returned by the App.Fields property. FILTER only returns persistent fields, as it accesses the Persistent property to determine if the field should be included. Finally, this array of persistent fields is passed to the RESET function, which resets the given fields.