> ## Documentation Index
> Fetch the complete documentation index at: https://docs.noxus.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Required Fields

> Make sure a case holds a value before its work is done

A required field is one a case needs before its work is done. An email, a flow, Genie or the API can open a case while the field is empty, to be filled in later; **New case** asks for it first. It stops the two actions that finish the work:

* completing a task that carries the field
* closing the case

## Mark a field as required

**1. Open the field**

In the process's **Configuration**, under **Case fields**, hover the field and click its edit button.

**2. Switch Required on**

In **General**, switch **Required** on. Yes/No fields do not offer it: an unset switch reads No, so a Yes/No field never stops anything, even one made required through Genie or the API.

**3. Save changes**

A required field carries a red asterisk on its row in **Case fields**, on the case page, in **New case** and on the task forms. On the case page an empty required field reads **Required**, also on cases opened before you made it required.

A required field that is hidden or read-only on the case page still stops people, though they cannot fill it there: only a task or a flow can. The field dialog says so under **Required**.

## What people see

* **Opening a case.** **New case** keeps **Create** disabled until every required field it shows is filled, and says which, for example *Fill in Vendor to create this case.*
* **Closing a case.** While a required field is empty, the status menu does not offer a closed status. Hovering it says which fields to fill, for example *Fill in Vendor to close this case.*
* **Completing a task.** A Field extraction task does not offer **Complete extraction**, and an Approval task does not offer **Approve and complete**, while a required field the task fills is empty. Hovering the button names the fields. Rejecting an approval is always possible, because it writes nothing to the case.

## Flows

A required field stops flows as it stops people:

* A flow step that completes such a task (**Task Automation Output**) or closes the case (**Close Case**, or **Update Case** with a closed status) fails, and its error names the empty fields. A task its automation could not complete stays open for a person.
* When the process flow reaches **Case Completed**, or a flow completes a task that would close the case, the case stays open and its timeline says which fields are empty. The run itself completes.

A flow that fills a required field must do so before the step that closes the case.

## Genie and the API

Genie sets **Required** when it creates or changes a field, lists empty required fields among a case's issues, and is stopped like a person when it closes a case. The API refuses a close or a task completion with a `422` whose `identifier` is `required_fields_empty`; its `params` name the gate (`close_case` or `complete_task`) and the empty fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.