Skip to main content

Adding a new field to an existing Validation Script

Article # 3032432 - Page views: 623


How to add a new field to an existing Validation Script?


New Fields added to a Document Class are not automatically added to a VB.NET Validation script.
This is a manual operation done in the script code. At the top of the VB script file, you will notice several declarations that look like this:

Namespace testAAA

<SuppressFieldEventsOnDocClose(false)> _
Public Class testAAA
Inherits DocumentValidationScript
<IndexFieldVariableAttribute("Name0")> _
Dim WithEvents Name0 As FieldScript

<IndexFieldVariableAttribute("Name1")> _
Dim WithEvents Name1 As FieldScript

<IndexFieldVariableAttribute("Name2")> _
Dim WithEvents Name2 As FieldScript

<IndexFieldVariableAttribute("Name3")> _
Dim WithEvents Name3 As FieldScript

<IndexFieldVariableAttribute("Name4")> _
Dim WithEvents Name4 As FieldScript

To add the new Field, simply copy one of these declarations and replace the Field name with the new.


Level of Complexity 



Applies to  

Product Version Build Environment Hardware
Capture 11.x      


Article # 3032432
  • Was this article helpful?