Skip to content

Form fields that fail validation are not highlighted when submit button is clicked #2681

Open

Description

Describe the bug
When the submit button on a form is clicked, the fields that fail validation, e.g required field, are not highlighted in red and the error text is also not displayed.

Component
SDC library

To Reproduce
Steps to reproduce the behavior on the SDC Demo app:

  1. Go to FHIR Engine sample app
  2. Click on Register new patient
  3. Without entering any data click on submit button
  4. The required fields are not highlighted in red and error messages are not shown

Expected behavior
The required fields should be highlighted in red and error messaged shown when the submit button is clicked

Screenshots
Find attached a video showing this behavior
form_validation_highlight_bug.webm

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

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

Metadata

Assignees

No one assigned

    Labels

    P3Low priority issueeffort:mediumMedium effort - 3 to 5 daystype:enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions