From 75420d8ccf50604c860d6ad6069463c343733de8 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Oct 2025 12:49:54 -0700 Subject: [PATCH 1/2] improved read me --- .../Background Scripts/Form Field Count/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Server-Side Components/Background Scripts/Form Field Count/README.md b/Server-Side Components/Background Scripts/Form Field Count/README.md index 2cde78cf49..2858a969f8 100644 --- a/Server-Side Components/Background Scripts/Form Field Count/README.md +++ b/Server-Side Components/Background Scripts/Form Field Count/README.md @@ -1 +1,11 @@ -This background or fix script will list forms that have more than a certain number of fields (starting threshold is 30, but can be changed on line 2). It looks through all form sections, and excludes container starts and splits. Forms / sections with more than 30(?) fields will appear on the Health Scan / Impact report as a possible performance impact, causing the form to take a noticeable amount of time to load. +## Description + +Analyzes all forms in the instance and reports any with field counts exceeding the threshold (default: 30 fields). The script counts fields across all form sections and excludes container elements like splits and container starts. + +## Usage + +1. Navigate to **System Definition > Scripts - Background** +2. Copy and paste the script code +3. (Optional) Modify `maxFields` variable to set your threshold +4. Click **Run script** + From 19c759e171c87e88338893d83183315680e2d3bd Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Oct 2025 13:01:54 -0700 Subject: [PATCH 2/2] added just a tadd more --- .../Form Field Count/README.md | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Server-Side Components/Background Scripts/Form Field Count/README.md b/Server-Side Components/Background Scripts/Form Field Count/README.md index 2858a969f8..88a36c1a8d 100644 --- a/Server-Side Components/Background Scripts/Form Field Count/README.md +++ b/Server-Side Components/Background Scripts/Form Field Count/README.md @@ -1,11 +1,20 @@ -## Description +# Form Field Count -Analyzes all forms in the instance and reports any with field counts exceeding the threshold (default: 30 fields). The script counts fields across all form sections and excludes container elements like splits and container starts. +A background script that identifies forms with excessive field counts that may impact performance or trigger Health Scan warnings. ## Usage -1. Navigate to **System Definition > Scripts - Background** -2. Copy and paste the script code -3. (Optional) Modify `maxFields` variable to set your threshold -4. Click **Run script** +1. Navigate to **System Definition → Scripts - Background** +2. Copy and paste the script content +3. (Optional) Modify `maxFields` variable to set your threshold (default: 30) +4. Click "Run script" + +## What It Does + +The script: +1. Queries all forms in the instance (`sys_ui_form`) +2. Iterates through each form's sections (`sys_ui_form_section`) +3. Counts fields in each section, excluding container elements (splits, section starts) +4. Reports only forms exceeding the configured threshold +5. Outputs form name and total field count to system logs