Skip to content

Commit d6bba1c

Browse files
authored
Enhance form field count readme (#2232)
* improved read me * added just a tadd more
1 parent 81d7759 commit d6bba1c

File tree

1 file changed

+20
-1
lines changed
  • Server-Side Components/Background Scripts/Form Field Count

1 file changed

+20
-1
lines changed
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
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.
1+
# Form Field Count
2+
3+
A background script that identifies forms with excessive field counts that may impact performance or trigger Health Scan warnings.
4+
5+
## Usage
6+
7+
1. Navigate to **System Definition → Scripts - Background**
8+
2. Copy and paste the script content
9+
3. (Optional) Modify `maxFields` variable to set your threshold (default: 30)
10+
4. Click "Run script"
11+
12+
## What It Does
13+
14+
The script:
15+
1. Queries all forms in the instance (`sys_ui_form`)
16+
2. Iterates through each form's sections (`sys_ui_form_section`)
17+
3. Counts fields in each section, excluding container elements (splits, section starts)
18+
4. Reports only forms exceeding the configured threshold
19+
5. Outputs form name and total field count to system logs
20+

0 commit comments

Comments
 (0)