Skip to content

Ensure accessibility doesn't error on a dynamic code field without a label #34

@jpagh

Description

@jpagh

In initial testing, this dynamic field without a label throws an accessibility error if it's not the only question on the screen:

  - code: |
      dynamic_fields()

In a question like this:

id: court county
question: |
  Court
fields:
  - code: |
      dynamic_fields()
  - What is the court county?: court_county
    choices:
      - Contra Costa
      - Alameda
      - San Francisco
      - Napa
      - Solano
      - Sonoma
      - Santa Clara
      - Other
    default: Contra Costa
  - Court address?: other_court_address
    js show if: |
      val("court_county") == "Other"

This might not be exactly applicable to your implementation of accessibility, but I ran into it when I migrated to my branch. So, I wanted to put this here as a "double check this"/reminder.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions