From 906c29444b822f7357b787e3080215e5b0c49c1f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 30 Apr 2024 10:01:26 +1200 Subject: [PATCH] FIX Try getting field with ID suffix --- src/Forms/RequiredFields.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Forms/RequiredFields.php b/src/Forms/RequiredFields.php index 918a32a11..96d570ec8 100644 --- a/src/Forms/RequiredFields.php +++ b/src/Forms/RequiredFields.php @@ -104,6 +104,9 @@ class RequiredFields extends Validator $fieldName = $fieldName->getName(); } else { $formField = $fields->dataFieldByName($fieldName); + if (is_null($formField)) { + $formField = $fields->dataFieldByName($fieldName . 'ID'); + } } // submitted data for file upload fields come back as an array