> For the complete documentation index, see [llms.txt](https://docs.infotopics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infotopics.com/writebackextreme/features/tableau-extension/configuration/schemas/general-configuration/editable-conditions.md).

# Editable conditions

{% hint style="info" %}
Editable conditions are incompatible with the DataCorrection PowerTools feature.
{% endhint %}

### **Allow editing records only when a condition is met**

Set conditions to allow or deny users the ability to edit a row in WriteBackExtreme, if this condition isn’t met then the logged in user will not be able to edit the comment. For example if the status of the row is ‘Current’ then that row can be editable, all rows that do not have a current status will be uneditable, or if you wish to have comments only about ‘Phones’ this is also possible. Conditions for editing can be based on either a data source from your dashboard, or on existing records within the underlaying WriteBackExtreme schema.

<figure><img src="https://appsfortableau.infotopics.com/wp-content/uploads/2022/11/Row-Level-Security.png" alt=""><figcaption></figcaption></figure>

### **Allow adding records only when a condition is met**

There may be situations where you want to restrict the ability of your users to add new records in WriteBackExtreme. For example, you only want your users to be able to add a comment to data within the current fiscal period, or based on the total amount of sales related to a selected mark.

Set your condition using the editor in the “worksheet-schema | general” tab in the WriteBackExtreme configuration screen. In this example, we will limit the adding of records to any mark with SUM(Sales) above 250000. This will allow your users to only add comments on marks where SUM(Sales) exceeds US$250.000.

[![WriteBackExtreme Product Guide Modules modules](https://appsfortableau.infotopics.com/wp-content/uploads/2023/05/WBEaddwhen-.gif)](https://appsfortableau.infotopics.com/wp-content/uploads/2023/05/WBEaddwhen-.gif)

As seen in the example below, the “add record” button (the pink + plus sign) is disabled when a mark is selected that does not match the condition setup previously (SUM(Sales) must exceed US$250.000).

[![WriteBackExtreme Product Guide Modules modules](https://appsfortableau.infotopics.com/wp-content/uploads/2023/05/WBEaddwhen-1-1.gif)](https://appsfortableau.infotopics.com/wp-content/uploads/2023/05/WBEaddwhen-1-1.gif)

#### Allow add when in Datacorrect

The `Allow add when` feature behaves slightly differently in a data correction schema. Any rule added to `Allow add when` only controls the + button at the top and does not affect the ability to select a mark that doesn’t yet exist in the schema. If you also want to restrict record creation when selecting such a mark, you need to add a corresponding rule under `Allow edit when`.&#x20;

When selecting multiple marks, the first mark will be used to determine if a row is editable or not.&#x20;


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.infotopics.com/writebackextreme/features/tableau-extension/configuration/schemas/general-configuration/editable-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
