Specifying a custom field as required and declaring maximum field length
You can make a custom field a required field by editing the validation.xml file. You must declare a maximum length definition for all custom fields.
About this task
Note: When upgrading to a newer HCL
Connections™ release, be aware that custom fields are not included in the migration tools for the standard
Connections configuration files. As well, the validation.xml file is also not
automatically migrated when you upgrade from an earlier release of Connections. This file is needed
by the Struts validation framework and is accessed at Connections startup. To ensure that your
custom fields and files are usable after a release upgrade, see the Saving your
customizations and Post-migration
tasks topics.
HCL Connections is built on Struts, allowing you to leverage the Struts validation framework to validate form data. The files validation.xml and validation-rules.xml are both part of the Struts validation framework. The validation.xml file defines the validation types that are applied to form fields; validation-rules.xml defines a set of standard validation routines. Validation routines, such as required and maximum length, are included in the validation framework.
All custom extension attributes must have a maximum length definition to ensure that values are within the limits of the database.
Procedure
To make a custom extension field a required field, perform
the following steps.
