Configure data validation on custom properties

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

Data validation can be enabled on properties with the following field types:

Integer
Decimal
Person
String


Define the data validation rules in the property 
Settings:

image5.png


Data validation on Integer and Decimal properties

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

  • Unbounded (no data validation)
  • Greater than
  • Less than
  • In range

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

image6.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.

The following configuration restricts the field Financial Dpt Approvers to users belonging to the library’s Financial Department role.

image3.png

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

image4.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 field to follow the regular expression: [A-Z]{3}-\d{5}
This corresponds to three capital letters and five digits, separated by a hyphen.

image1.png

If the document editor 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:

image2.png

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.