When capturing fields in Rossum you often want your users to always capture value for a specific field. In such cases, Rossum should enforce capturing of such a field by showing a specific message to the user.
This is already possible in the Rossum’s validation screen and in this article you will find out how set the fields to be required in the Extraction schema editor.
Making header fields required
In order to make a header field required you should:
- Navigate to the given queue in the queue settings
- Click on the queue detail
- Open the Extraction schema editor
- Click on the field you would like to make required
- Set the field to be required in the constraints attribute of the datapoint

In the image above you can see the that required attribute was set to “true” and that the field in the left sidebar contains asterisk “*” mark that tells you the field is required.
Once the Extraction schema would be saved, you should be seeing the following message on the validation screen if no value is captured and the error message will be blocking the confirmation of the document.

Making line items fields required
Of course, even fields in line items can be set as required. 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.
