How to create a case-insensitive barcode matching validation in my form?

This article outlines how to implement a validation rule in OFS-Flow that allows for case-insensitive matching of barcode values. This is particularly useful when barcode data might be entered or scanned with varying capitalisation.

Scenario

You have a field called "barcode" in your form, and you want to validate it against a barcode stored in the job metadata (e.g., jobmeta["barcode"]). The validation should pass even if the capitalisation of the entered barcode differs from the stored barcode.

For example, if jobmeta["barcode"] is "a123B", the following entered values should be considered valid:

  • a123B
  • A123B
  • a123b
  • A123b

Rule Configuration

Step 1 - In the barcode field, navigate to the 'Field Validation Rules' tab

Step 2 - "Mark form as Valid without message, when"