Some of JS validation rules making fields required #16544
Labels
Component: Ui
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Hi, dear Magento Comunity Engineering team.
In some cases quite useful to have validation only for the filled fields. For example:
we have on the form field
phone
which is not required, but it required to have valid data when user will fill out this field. In case if a user did not fill out anything error should not be displayed.Bunch of validation rules makes this not possible.
On the screenshot, I've selected more important validation rules for my opinion. Some of them work fine, others have unexpected behavior.
Here form source to more convenient reproducing.
Preconditions
<validation> <rule name="phoneUS" xsi:type="boolean">true</rule> </validation>
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: