Skip to main content

Enable Field Validation in KFS using KFSIndexFieldAttribute


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.


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


Applies to:  

Product Version
KFS 4.1