Autocorrect 'empty' data capture fields which use / separators

Created by Jeremy Burgess, Modified on Thu, 22 Sep, 2022 at 12:28 PM by Jeremy Burgess

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 = "";
}


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article