From 850652784fed4921c49a874b5ffc69627d3524f0 Mon Sep 17 00:00:00 2001 From: Brock Fanning <1319083+brockfanning@users.noreply.github.com> Date: Wed, 25 Mar 2026 14:27:03 +0000 Subject: [PATCH] FOIA-532: Regex for HHS FDA fees field. --- config/default/webform.webform.hhs_fda_form.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/default/webform.webform.hhs_fda_form.yml b/config/default/webform.webform.hhs_fda_form.yml index 70b49f764..54cb1b8f2 100644 --- a/config/default/webform.webform.hhs_fda_form.yml +++ b/config/default/webform.webform.hhs_fda_form.yml @@ -117,8 +117,9 @@ elements: |- fee_amount_willing: '#type': textfield '#title': 'The amount of money you’re willing to pay in fees, if any' - '#help': 'There is no initial fee required to submit a FOIA request, but the FOIA does allow people requesting records to be charged certain types of fees in some instances.' - '#pattern': '^(?=.)([+\-\$]?([0-9]*)(\.([0-9]+))?)$' + '#help': '
There is no initial fee required to submit a FOIA request, but the FOIA does allow people requesting records to be charged certain types of fees in some instances.
' + '#pattern': '^(?=(?:\D*\d){1,6}\D*$)[+\-\$]?([0-9]*)(\.([0-9]+))?$' + '#pattern_error': 'Please enter a number between 0 and 999999.' '#counter_type': word '#counter_maximum': 1 expedited_processing: