[React Form] Sitecore Form field validation rules not working
Description
Sitecore Form rules such as Email Validator, or Number Validator are not being evaluated.
Expected behavior
- JSS React Form should show an error when validators set on certain fields fail.
Steps To Reproduce
- Create a Sitecore Forms form with a Single-line Text field (or a Telephone field), check the "Phone Number Validator" or "Number Validator" if not yet applied, then Publish
- Apply created Sitecore Forms to JSS application as defined in the docs here
- Fill up the form with an invalid value (093G1234567)
- Form would be submitted even if it shouldn't.
Your Environment
- Sitecore Version: 9.3
- JSS Version: 13.2
- Browser Name and version: MS Edge
- Operating System and version (desktop or mobile): Windows 11
Figured it out:
I was working on Dutch (Netherlands) language version, so I checked the "Phone Number Validator" item and there's no Dutch (Netherlands) version of that item that's why it didn't run.
But should this actually be the case or should it at least use the item's fallback language?
This is happening to me. Is there no client side validation when using react forms package for jss?
This has been automatically marked as stale because it has not had recent activity. It will be closed if there is no further activity within 30 days. You may add comments or the 'keep' label to prevent it from closing. Thank you for your contributions.