Hello !
I don't know if I'm using wrong logic, but my goal is the following :
I have two select. If the first (dependee) has a specific value (for example 2) I would like to have the value 5 selected in the dependent select. This test seems to be basic, but I don't find the correct way to do it.
The real goal is the following : If the dependee hasn't the value 2, the dependent must be "emptied" (_none value). I don't get it working too, so I test a more simple example, but no way...
The condition must be applied to a custom entity created with ECK module
Fields are List (integer) types
I use the latest dev for conditional fields and jquery update
My condition is the following :
Condition: value
Values input mode: insert value from widget
-- Insert value from widget: 2
Interaction with other dependencies: AND
Edit context settings :
-- form state: Filled with a value
-- Fill field with a value effect option: value: 5
-- Restore previous value when untriggered: checked
-- Hide the dependant if the dependee is not in the form: checked
Is that someone managed to run this type of behavior ?
Thanks in advance for any suggestion.
[edit]
condition applied to visible state works perfectly, for example if I want to make visible the dependent only if dependee has the value 2 selected...
[/edit]
Comments
Comment #1
titouilleComment #2
gangaloo commentedAny luck on this?
I might be missing something too, but I tried to do the same thing but couldn't get it to work.
Comment #3
j4 commentedDuplicate of https://www.drupal.org/node/2270775
Comment #4
jeramy commentedThis appears to be an issue for others as well. I believe this is a duplicate of https://www.drupal.org/node/214269
Comment #5
draenen commentedThis is a duplicate of #2142691: 'Filled with a value' form state is broken.