Description
Return distinct literal field IDs and fieldIds.length-distinct count as repeated occurrences.
Administrative records depend on literal identifiers, numbering conventions, check alphabets and ownership mappings. A duplicate count, check symbol or one-hop route helps reconcile metadata without authenticating a document or establishing who has authority over it. A well-formed label can still refer to the wrong record.
Return distinct literal field IDs and fieldIds.length-distinct count as repeated occurrences.
When to use this tool
Use Form Repeated Field Count when checking the stated administrative key, numbering, continuity or routing convention.
How to use the tool and how it works
- Enter fieldIds. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read repeatedOccurrences, distinctFields. Use the output convention below.
Return distinct literal field IDs and fieldIds.length-distinct count as repeated occurrences.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| fieldIds | Field Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| repeatedOccurrences | Repeated Occurrences | Required. Safe integer. |
| distinctFields | Distinct Fields | Required. Safe integer. |
{
"input": {
"fieldIds": [
"a",
"b",
"a",
"a"
]
},
"output": {
"repeatedOccurrences": 2,
"distinctFields": 2
}
} Limitations and assumptions
- Counts extra occurrences rather than the number of field names that repeat; no form schema or semantic equivalence is inferred.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use authoritative source records and the complete applicable document/process scheme for actual identity, routing or integrity decisions.
References
Similar or alternative tools
- Form Field Reuse Count
Optionally lowercase both field lists, deduplicate them and return shared fields in first-list encounter order and their count.
- Form Source Key Ambiguity Gap
Group distinct source keys per target; count targets with multiple sources, distinct targets and distinctTargets-requiredTargetCount.