What I mean: For example, usually this field is require, but for certain choice this field can be not required, user decides to fill or not to fill.
Need in UI opportunity to give field required / not required setting depending on category user choose!

Comments

peterpoe’s picture

Status: Active » Fixed

You can obtain this effect by creating a dependency with a "Value" condition and a "Required" form state.
An example:
field_a: select list with 2 allowed values, "field_b is required", "field_b is optional"
field_b: any field. Check the "required" option in the field settings.
Create a dependency with:
Condition: "Value"
Values: "Insert value from widget..."
Value: "field_b is required"
Form state: "required"
Node view settings: uncheck "Hide the dependent if the dependency is not triggered"

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.