# 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:

![Conditional Write formula](https://3285996621-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3GVUHw4oTRoOiEo4EB%2F-MdM9I-ITC1NaiW9hrPJ%2F-MdMAQS9icxJ41BbHDDK%2FConditional_write.png?alt=media\&token=2dd11d8b-1b94-442a-8d8f-e78cdfe950ac)

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:

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