# 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="/files/2ra5NkCUUdUOPte3cKGF" 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)
```


---

# Agent Instructions: 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/komment3/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.
