...
fieldScope.readOnly = true;
}
9. Select Update.
10. Select Save for the form.
Note: This example sets the field to read only based on the “Initial” state condition. If you wish to change it in a different state, this may be edited to the current state appropriate to where it is implemented . For example, if a form is set to “Initial” state you could use this condition
...