Working with Validation Scripts

Use the following procedures to create, edit, or remove a document validation script. For detailed information about creating and customizing validation scripts, see the Kofax Express Developer's Guide.

To use Kofax Express validation scripts, one of the following must be installed:

  • Microsoft Visual Studio 2012 / 2013 / 2015 / 2017 / 2019 or later.

  • Microsoft Visual Studio Express 2012 / 2013 / 2015 or later.

  • Microsoft Visual Studio Community 2017 / 2019 or later.

Creating a Validation Script

  1. Verify that you have completed the process of creating index fields.
  2. On the Index Setup tab, in the Validation Script group, click New.

    VB .NET is launched, and a list of index fields appear on the script template. By default, the project and script names are based on the current job name.

  3. Use the template to create and compile a validation script according to your business needs.
  4. Save the compiled script and exit VB .NET to return to Kofax Express.
  5. In a multiuser environment, publish the job to make the new script available to other workstations.

    The compiled script is run automatically when you enter indexing mode to process documents.

Editing a Validation Script

After creating and compiling a validation script, you can reopen it to make adjustments.

  1. On the Index Setup tab, in the Validation Script group, click Edit.

    VB .NET is launched, and your validation script appears.

  2. Update the validation script as necessary.
  3. Save the script and exit VB .NET to return to Kofax Express.
  4. In a multiuser environment, publish the job to make the updated script available to other workstations.

Removing a Validation Script

  1. Verify that no further processing with the current validation script is required.
  2. On the Index Setup tab, in the Validation Script group, click Delete.

    The validation script is removed.

  3. In a multiuser environment, publish the job to remove the script from other workstations.