Skip to content

Commit 19c759e

Browse files
committed
added just a tadd more
1 parent 75420d8 commit 19c759e

File tree

1 file changed

+15
-6
lines changed
  • Server-Side Components/Background Scripts/Form Field Count

1 file changed

+15
-6
lines changed
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
## Description
1+
# Form Field Count
22

3-
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.
3+
A background script that identifies forms with excessive field counts that may impact performance or trigger Health Scan warnings.
44

55
## Usage
66

7-
1. Navigate to **System Definition > Scripts - Background**
8-
2. Copy and paste the script code
9-
3. (Optional) Modify `maxFields` variable to set your threshold
10-
4. Click **Run script**
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
1120

0 commit comments

Comments
 (0)