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
- Decrypt Encrypted Barcode Data
- Display decrypted results to users in the app response.
- Optionally, include decrypted data in the scan record.
- 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.
- Convert HEX to ASCII
- Enable on-device validation, then paste the script provided in this PDF guide.
- 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.
Enhanced User Functionality
Custom Validity Overrides by Users
- Temporarily pause scanning to allow manual overrides in specific scenarios.
- Example: Overriding expired ticket validity for a fee.
- Use-case: Alert users for additional ID checks (e.g., worker credentials).
Combining Scanned Values
- Merge primary and secondary scans to create new records or validate against a database.
- Example: Combine “123456789” and “abcdefghij” into “123456789abcdefghij”.
Cycle Count and Inventory Verification
- Compare manually entered counts against stored database values to validate accuracy.
- Check the configuration instructions here.
Kitting Verification
- Validate items and quantities within kits.
- Example: Batch scan apples, oranges, and bananas to complete a kit.
- Check the guide for kitting setup here.
Loading and Unloading Validation
- Prevent duplicate scans during loading or unloading processes.
- Example: Associate asset IDs with driver IDs for tracking.
- Check the detailed setup instructions here.
Support and Customization
Need help customizing your scripts? Contact support. Our team can guide you through setup or provide a quote for complex requirements.