Field_OnScan event

This event occurs when a form is open and the device start button is pressed and before device begins the scan operation.

Field_OnScan ( form )
Argument Description
form The form object from which the scan was initiated.

Remarks

You can use this event to perform tasks such as populating or validating the form fields. If the return value is an empty string then validation is assumed to have been successful.

Example

Function Form_OnScan(Form)
  If (Form.UserName = "") Then
    Form_OnScan = "Unable to lookup the user's home directory"
  Else
    ’Write custom code to lookup the authenticated user’s home directory.
    Form.SetFieldValue "Path", LookupHomeDirectory(Form.UserName)
  End If
End Function