Description
Append a supplied label suffix only when required is true.
Accessibility-related records can describe visible time, available formats, label text or supplied requirements. A count or budget can expose local gaps without establishing usable content, valid accommodations or compliance with a standard.
Append a supplied label suffix only when required is true.
When to use this tool
Use Accessible Control Label Suffix when checking an explicit accessibility record, time or layout convention.
How to use the tool and how it works
- Enter label, suffix, required, separator. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read text, suffixPresent. Inspect suffixPresent before interpreting the associated values.
Append a supplied label suffix only when required is true. Return the concatenated text, or label unchanged; suffixPresent is required && suffix.length > 0.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| label | Label | Required. Text; maximum UTF-16 length 8192. |
| suffix | Suffix | Required. Text; maximum UTF-16 length 8192. |
| required | Required | Required. Boolean. |
| separator | Separator | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| text | Text | Required. Text; maximum UTF-16 length 8192. |
| suffixPresent | Whether a nonempty suffix was appended under required; not whether equivalent text already existed. | Required. Boolean. |
{
"input": {
"label": "Save",
"suffix": "required",
"required": true,
"separator": " — "
},
"output": {
"text": "Save — required",
"suffixPresent": true
}
} Limitations and assumptions
- The flag reports appended suffix text, not semantic accessible-name correctness or browser accessibility behavior.
- 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 the applicable accessibility guidance, real content and user evaluation for practical adequacy; establish any legal requirement separately.
References
Similar or alternative tools
- Caption Cue Speaker Prefix Budget
Check a combined speaker prefix, separator and caption against a code-point budget.
- Tactile Line End Clearance
Return tactile line-end clearance against a supplied boundary.