> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/health/access/public-health-product-suite/health-campaign-management-hcm/hcm-console/manage-dependent-fields.md).

# Manage Dependent Fields

## Overview

The **Dependent Field** feature allows administrators to control the visibility of a field based on the value of another field.

Using display logic, a field can dynamically appear or remain hidden depending on user input. This helps:

* Simplify data entry screens
* Reduce data entry errors
* Ensure only relevant information is captured

## Steps

### Step 1: Select the Field

* Navigate to the **Page Properties** panel on the relevant screen.
* Select the field for which you want to configure dependency.

<figure><img src="/files/QNenf9NGzakH6aUdYPk9" alt=""><figcaption></figcaption></figure>

### Step 2: Open Field Logic Settings

* In the **Field Properties** panel, go to the **Logic** tab.
* Enable the **Dependent Field** toggle.
* Click **Add Display Logic** to open the configuration pop-up.

### Step 3: Configure the Display Condition

In the **If** section of the pop-up:

* Select the **Page** where the controlling field is located.
* Select the **Field** that will control visibility.
* Choose the appropriate **Operator** (e.g., Equals to, Not equals, Greater than).
* Specify the comparison value:
  * Enter a fixed value, **or**
  * Select **Use Another Field** to compare against another field in the form.

If needed, click **Add Condition** to define additional rules.

<figure><img src="/files/wCyNgctGrM8jpjJ5xQxd" alt=""><figcaption></figcaption></figure>

### Step 4: Review and Confirm Logic

* Review the **logic summary** displayed at the bottom of the pop-up.
* Verify that the rule correctly reflects the intended behaviour.
* Click **Confirm Logic** to apply the dependency.

### Step 5: Save Configuration

* Click **Save Configuration** to apply the changes.

The configured display logic will now be reflected in the mobile application (APK) during campaign execution.


---

# 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.digit.org/health/access/public-health-product-suite/health-campaign-management-hcm/hcm-console/manage-dependent-fields.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.
