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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.extendbi.com/komment/optional-settings/conditional-write.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
