<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>EnforceDigitsForFiscalYear</fullName>
    <active>true</active>
    <description>Ensures the field contains a valid year starting with “20” and containing only numeric characters, preventing the entry of letters or special symbols.</description>
    <errorConditionFormula>NOT(REGEX(FiscalYear__c, &quot;^20[0-9]{2}$&quot;))</errorConditionFormula>
    <errorDisplayField>FiscalYear__c</errorDisplayField>
    <errorMessage>Please enter only numeric characters starting with &quot;20&quot; in the Fiscal Year field.</errorMessage>
</ValidationRule>
