Skip to content

Layer validation should not consider hidden conditional features #3990

@parvva

Description

@parvva

Describe the bug
We faced an issue on a feature which is conditional. The scenario is:
A is a feature can get value "aa" and "bb"
if "aa" is selected, then feature B is visible and it is required
otherwise if "bb" is selected, feature B is hidden, so not required

right now if we choose "bb" and feature B is required, we cannot finish the document with error that feature B is required. Although it is hidden!

Expected behavior
When no constraints applies to a required feature and it is hidden, it should become not-required automatically.
Also, when a feature is hidden by a constraint, its value should be reset/cleared.

Please complete the following information:

  • Version and build ID: 27.6

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🍹 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions