> For the complete documentation index, see [llms.txt](https://docs.extendbi.com/komment/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.extendbi.com/komment/optional-settings/conditional-write.md).

# 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](/files/-MdMAQS9icxJ41BbHDDK)

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)
```
