Knowledge Base

View Categories

Custom On-Device Validation

What Is Custom On-Device Validation (COV)?

Custom On-Device Validation (COV) empowers developers to write custom JavaScript scripts to validate data based on scanned barcodes, response text, and user inputs within the app. This feature is available for services set up as Record On-Device or Validate On-Device with options for manual uploads or auto-syncing to servers (including your own). Learn more about auto-sync here.

To enable this feature, navigate to the Advanced Step while creating or editing a service and select Enable on-device custom validation under the Miscellaneous section. Paste your custom script or use one of the examples provided below.

For developers, the Custom Offline Validation Guidelines PDF offers detailed instructions on script setup for specific use cases.

Key Features and Examples

  1. Decrypt Encrypted Barcode Data
    • Display decrypted results to users in the app response.
    • Optionally, include decrypted data in the scan record.
  2. Advanced Barcode Validation
    • Match primary scans against a database.
    • Validate using predefined conditions or exact/substring matches for response text.
    • Handle question-answer formats from barcode scans or manual entries. See A/B/C Barcode Matching examples below.
  3. Convert HEX to ASCII
  4. Regex-Based Answer Validation
    • Block answer submission if it doesn’t match specified Regex patterns.
    • Specify QUESTION_ID, Regex PATTERN, and optional ERROR MESSAGE. Check the setup instructions here.

Detailed Use Cases

Option 1: Conditionally Capture Scans with Regex

  • Single Barcode Scanning: Filter scans using regex to define valid patterns. Invalid scans show error messages and aren’t recorded.
  • Batch Scanning: Validate up to 200 barcodes in a single view. Non-matching scans are automatically excluded. Here is the example script.

Option 2: A/B/C Barcode Matching

  • Alert users when two or three sequential barcode scans match (or don’t match).
  • Matching options:
    • Primary scan against a database response.
    • Question-answer pairs against database responses.
    • Cross-match between question-answer values.
  • Note: Substring and exact matching are supported. For multi-line barcode data, ensure the question type is set to Multi-Line Scan and use this script.

Option 3: Dynamic Response Changes

Option 4: Scan Value Alteration

Option 5: Conditional Validity Overrides

Enhanced User Functionality

Custom Validity Overrides by Users

Combining Scanned Values

Cycle Count and Inventory Verification

Kitting Verification

Loading and Unloading Validation

Support and Customization

Need help customizing your scripts? Contact support. Our team can guide you through setup or provide a quote for complex requirements.