# Conditional Write

As a developer you can set specific rules for whether or not it should be possible for a user to edit data in each widget.

The `Conditional Write` settings are found in the **Advanced Settings** for each widget:

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FpFWbN7cJbhSanX2MoMhj%2Fimage.png?alt=media&#x26;token=b9873e82-3f41-4a4e-9c10-6485e97ba9c1" alt=""><figcaption><p>Conditional Write formula</p></figcaption></figure>

For the conditional write formula to work correct use "-1" as the value for when the condition is true. E.g. like in the below example where the widget will be editable when "da" is the initials of the user:

```
=if(subfield(osuser(),'Id=',2)='da',-1,0)
```
