Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a select list field as dependee (field_a
with options A
, B
, and C
; value A
is default) and a text field as dependent (field_b
). I want field_b
to be visible only when field_a
has value B
. That does work when I change the value of field_a
in the node edit form, but it doesn't when the node edit form is loaded (with default value A
for field_a
).
To be clear, expected behaviour after loading the node edit form would be:
field_a
has valueA
and is visiblefield_b
is hidden
But it is:
field_a
has valueA
and is visiblefield_b
is visible
Comments
Comment #2
fictionking88 CreditAttribution: fictionking88 commentedHaving the same issue
Comment #3
yan CreditAttribution: yan as a volunteer commentedAny ideas?
Comment #4
giupenni CreditAttribution: giupenni commentedSame issue
Comment #5
giupenni CreditAttribution: giupenni commentedAny news?
Comment #6
dqdThanks for the report and all the efforts in here. But due to inactivity in this issue for some years and because of the upcoming EOL of Drupal 7, I will close this issue on the way of cleaning up the issue queue.
Feel free to re-open as "Needs review" if you found a solution or have a patch to be reported to help others.