Skip to main content
This sample script searches a data set from the Web Verification Station and copies the found value into the current field.

Create a data set

Before you configure the script, create a data set for it to search:
1

Open the document definitions

Open the Project Setup Station and click Project → Document Definitions.
2

Add a data set

Click Document Definition → Document Definition Properties, open the Data Sets tab, and click Add.
3

Create records

Create a data set, add a few records, and click Close.
You add this script as a user script for the Web Verification Station. For more information, see User scripts for the Web Verification Station.

Sample script

You can also find this sample script at https://<ApplicationServer>/FlexiCapture12/Verification/Scripts/CustomScripts/customActionLookup.js, where <ApplicationServer> is the name of the computer where the Application Server is installed. Replace the values in these lines:
  • var dbCacheName = 'DataSet1';DataSet1 is the name of the data set you created.
  • var fieldNameInCache = 'Field2';Field2 is the name of the data set field that contains the value to copy.