Configure data validation for custom properties

As a library administrator, you can configure data validation rules for custom properties. This ensures that the values entered by users follow the conventions specific to your organization.

You can configure data validation rules for the following property types: Integer, Decimal, Person, String and Category.

Tip: You can also configure help text for these property types, to guide users on the values to enter. Learn more: Configure help text for custom properties.

 Access the document class configuration
Data validation for Number (integer and decimal) properties
Data validation for Person properties
Data validation for String properties
 Data validation for Categories

Access the document class configuration

1. Open the library administration interface.

2. Select Document classes.

3. Press the name of the document class you want to configure  or select Configure document class in the More actions menu. The document class configuration page opens.

4. Press the expand button next to a property to view its settings.

You can configure data validation for the following property types:

image02.png


Data validation on Number (integer and decimal) properties

Integer and Decimal type properties can have the following data validation rules:

  • Greater than
  • Greater than or equal to
  • Less than
  • Less than or equal to

The following configuration restricts the property value to a value that is greater than zero and less than or equal to one million.

image03.png


Data validation on Person properties

You can restrict Person type properties to users who are defined in a role or group. This means that only users belonging to a role or group can be specified for the property.

Note: When end-users define a value for the property, the autocomplete is restricted to users belonging to the group or role defined in the Restricted to field.

The following configuration restricts the property Manager to users belonging to the library’s Contract managers role.

image04.png

If a user enters a person who doesn’t match the restriction, the message defined in the Error message to display field appears in red in the user interface.

image05.png

Tip: Use the Description and Error message to display fields to to guide users on the values to enter.


Data validation on String properties

You can configure String type properties to force users to enter text following a certain pattern. This pattern is defined using a regular expression. Regular expressions allow you to define the content and format of the string.

The following configuration forces the property value to follow the regular expression: [A-Z]{3}\d{5}
This corresponds to three capital letters followed by five digits.

image06.png

If a user enters a string that doesn’t match the regex (regular expression) the message defined in the Error message to display field appears in red in the interface:

image07.png


Data validation for Categories

You can configure Categories to force users to select the deepest sub-level of the category hierarchy. 

image07.png

Was this article helpful? 2 out of 2 found this helpful
If you didn’t find what you were looking for, don’t hesitate to leave a comment!
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.