Skip to content

Denying location permissions shows error banner for empty fields before form entry has begun #897

Description

@garethbowen

Expected Behaviour

If geolocation fails for whatever reason you should see the error message for that but nothing else.

Observed Behaviour

You also see the error message for any empty required fields even though you haven't had the chance to fill them in yet.

Reproduction Steps

Form (XML or XLSX file): https://github.com/user-attachments/files/31522825/error-banner-test.xml

Steps:

  1. Load the form
  2. Deny geolocation permissions

Screenshots or Videos

https://github.com/user-attachments/assets/c6cf2018-dc67-4aa5-bb6f-bf51d3ea3868

Environment

  • Browser version:
  • OS:
  • Web Forms version:

Additional Context

I think we can improve the UI in additional ways...

  1. I think the geolocation message should be in a separate element because the "view" button doesn't make sense, it's shown at a different time, etc.
  2. It would be better for the message to be a warning not an error - it may not block the form submission

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions