Lock a field always
- Open the template and select the field.
- Open When it’s editable.
- Tick Read-only.
- Save the template.
Lock a field while a rule is true
- Open the template and select the field.
- Open When it’s editable. Leave Read-only off. While it is on, the field is always locked.
- Under Or lock it conditionally, choose one (Never means no conditional lock):
- Only when…: build a condition from the record’s fields. It can also read a linked object, see Rules that read a linked object.
- Expression: a formula that returns
truewhile the field should be locked, for example:
- Save the template.
What crews see
- While the rule is true, the value is shown read-only. Its ⓘ popover says “Locked when …”.
- When the rule stops being true, the field is editable again straight away.
- A rule that is broken, or an expression that stops with an error, leaves the field editable and shows a rule issue.
What a lock doesn’t do
- It only stops people typing. Calculated values and suggestions still fill the field.
- A hidden field stays hidden. Locking doesn’t show it.
- The lock applies in the Cloneable web and iOS forms. It isn’t a check on data that arrives from imports or integrations.
An iOS app from before conditional locks shipped ignores the rule and leaves the field editable. A field with Read-only ticked is locked on every version.