Skip to main content
Kofax

Enable Field Validation in KFS using KFSIndexFieldAttribute

3023246

Question / Problem: 

How to indicate in a Validation Script whether an index field should be validated in Kofax Front Office Server (KFS) 4.x using the KFSIndexFieldAttribute Constructor

Answer / Solution: 

To indicate whether a Validation Script should perform validation on an index field in KFS, the KFSIndexFieldAttribute constructor and its validate and readOnly parameters must be added to the field.

[KFSIndexFieldAttribute(true, false)]

This enables validation and disables setting the field to read only in the client.

Example:

//Use the KFSIndexFieldAttribute to mark the Country field for validation
[IndexFieldVariableAttribute("Country")]
[KFSIndexFieldAttribute(true, false)]
FieldScript Country = new FieldScript();

 

Applies to:  

Product Version
KFS 4.1
  4.3