Skip to content

Implemented logic to perform form validation#1170

Merged
valadas merged 1 commit intoDNNCommunity:developfrom
valadas:whole-form-validation
Sep 25, 2024
Merged

Implemented logic to perform form validation#1170
valadas merged 1 commit intoDNNCommunity:developfrom
valadas:whole-form-validation

Conversation

@valadas
Copy link
Copy Markdown
Member

@valadas valadas commented Sep 24, 2024

  • When using a button with buttonType="submit", all the validateable fields will get their checkValidity() method called, which makes them display our custom version of validity state.
  • If any field is not valid, form submission is prevented.
  • If any field is invalid, the first invalid fied is scrolled into view and focused.

- When using a button with buttonType="submit", all the validateable fields will get their checkValidity() method called, which makes them display our custom version of validity state.
- If any field is not valid, form submission is prevented.
- If any field is invalid, the first invalid fied is scrolled into view and focused.
@valadas valadas added the enhancement New feature or request label Sep 24, 2024
@valadas valadas added this to the 0.24.0 milestone Sep 24, 2024
@valadas valadas merged commit 0c41d03 into DNNCommunity:develop Sep 25, 2024
@valadas valadas added breaking and removed enhancement New feature or request labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant