Configure functions in Studio to determine which actions users can perform in the mobile
app.
This example is taken from the Accept function for Work Order
Task records.
current.state == 16 && current.assigned_to ==
gs.getUserID()
The function is available for records in the
Assigned(16) state, and the record is assigned to the current user. If
the function has a value in the Roles field, then the role requirements
are applied in addition to this scripted condition.