From this article you will learn:
- How to set fields to “Required” in the Extraction Schema editor
- How to set fields to “Required” in the JSON code editor
You may need your users to always capture value for a specific field. In such cases, Rossum should enforce capturing such a field by showing a specific message to the user. You can enable it in Rossum’s validation screen. This article will show you how to set the fields to “Required” in the Extraction schema editor and in the JSON file editor.
How to set fields to “Required” in the Extraction Schema editor
Header Fields
- Navigate to the given queue and open its Settings.
- Click on the “Fields to capture” tab.
- Select the field and click on the “Edit” option.
- In the field’s edit window, enable the “Required” option.

Line Items
- Navigate to the given queue and open its Settings.
- Click on the “Fields to capture” tab.
- Scroll down to the Line Items section, and click on “Edit” option.
- Select the field and click on its “Edit” option.
- In the field’s edit window, enable the “Required” option.

How to set fields to “Required” in the JSON code editor
Header Fields
- Select a queue and open its Settings.
- Click on the “Edit JSON” button.
- Click on the field you would like to make required.
- Set the field to be required in the constraints attribute of the datapoint

The image above shows that the required attribute was set to true and that the field in the left sidebar contains an asterisk “*” mark that tells you the field is required.
Once you save the Extraction schema, you should see the following message on the validation screen if no value is captured, and the error message will block the document’s confirmation.

Line Items
You can set line items as “Required” as well. Follow the same steps as when making the header fields required.

After saving the Extraction schema you should be seeing the following message for the required fields with no captured value.
