Closed (fixed)
Project:
Conditional Fields
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2012 at 15:31 UTC
Updated:
11 May 2012 at 18:00 UTC
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
Comment #1
peterpoe commentedYou 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"