Skip to content

Restrictions

Sub-Document

The restrictions can be used in lists and also in sub-documents, they are used to define the behavior of the lists in the following ways:

  • Max Length: maximum number of items in the list
  • Min Length: minimum number of items in the list
  • Required: must have at least 1 item
  • Unique: defines the fields that can not duplicate in the list (does not work for sub-documents, because in the sub-document you can configure constraint)

Lists

In the lists we can use 4 types of restrictions that were quoted above, below we have an image showing how to configure and how it works on the screen

Configuring list restrictions

Using list restriction on the screen

Sub-Documents

In the sub documents we can use 3 types of restrictions that were quoted above except Unique, below we have an image showing how to configure and how it works on the screen

Configuring sub-document restrictions

Using sub-document restriction on the screen