Skip to main content

Autocorrect 'empty' data capture fields which use / separators

Symptoms​

When reading a date of birth from a field with pre-filled dMy separators, those separators are read using OCR but result in an invalid date value.

Becomes...

Cause​

The separation characters are being read by OCR.

Resolution​

Autocorrect script for the field: using System;

if (Value.Text.Replace(" ", "").Equals("11", StringComparison.OrdinalIgnoreCase) || Value.Text.Replace(" ", "").Equals("ii", StringComparison.OrdinalIgnoreCase)) { Value.Text = ""; }