# Conditional input control

By default, all users with the appropriate permissions can input data in the Qommentary Form. However, you can also disable data input with the use of Qlik Sense expressions.

To enable or disable data input, please follow these steps:

1\. Edit your sheet and select the Qommentary Form extension\
2\. Expand the *Input fields* section and input control you wish to alter\
3\. Scroll down to the *Allow editing if* property

<div align="left"><img src="/files/-MfYWJ14Dnnwhc74VA_Z" alt=""></div>

4\. Enter an expression which would return a number **1** (enabled) or **0** (disabled)

Working with field-level expressions provides greater flexibility and control to apply complex conditional calculations referencing more than one input field at a time.

**Examples:**

`=if('col.TargetRevenue' >= 1500, 1, 0)`\
Enable input  in **Performance field** (type=Rating) only if TargetReveune value is greater or equal than 1500.

`=if('col.Target' > 60 && 'col.Approved' <> 'true', 1, 0)`\
Enable input only if value in **Target** column (type=Number) is greater than 60 AND **Approved** column (type=checkbox) is not true.

`=if('col.Status' = 'Approved' OR 'col.Status' = 'Closed' && 'col.Rank' < 40, 1, 0)`\
Enable input only if value in **Status** column (type=Dropdown) is Approved or Closed AND Rank column (type=Number) is less than 40.

{% hint style="warning" %}
The keyword **col** allows you to access values from other input fields found on the same form at runtime.
{% endhint %}

{% hint style="success" %}
The conditional edit expressions have been applied successfully
{% endhint %}

If **TargetReveune** field value is greater or equal than 1500 then **Performance** field will be enabled

![](/files/8dnP0c8HkGOX0Ivd5vOz)


---

# 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://knowledgebase.qommentary.com/qommentary-form/custom-data/conditional-input-control.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.
