I noticed the dependency (at the visible state) is not maintained in the edit form. I mean if an option is selected in A field to make B field to be revealed (become visible) and the save button to clicked to create the node, when you return to edit that specific node the B field is not visible even though the A field remains selected (returns to how the form was when you want to create a new node).
This is not the expected behaviour, or is it? One would expect the validation will be attached to the form id and not to just the field id or class.
Update
=====
In my instance, A field is a radio button and B field is select list. The site is D8.8.5.
Comments
Comment #2
ojchris commentedComment #3
chucksimply commentedYeah, this is a major bug. Same thing happening on my end. I have one select field managing the display of multiple different types of fields (textarea, photo, inline entity form). All are totally hidden when editing the node page even though the managing select field is selected.
Comment #4
chucksimply commentedChanging to latest version, as the bug still persists here.
Comment #5
hmendes commentedHello!
I could only reproduce this error when using a select list field as trigger. Is this the same problem from #3168929: Display conditional form field not displayed when re-editing the node?
Comment #6
chucksimply commentedSame issue with radio buttons as select. Yes it does seem to duplicate your noted issue.
Comment #7
telegraph commentedHi,
Originally reported this in the related issue (although marked fixed/closed, the problem persists). Issue is still present in latest 4.0.0-alpha1.
We are using the entity reference field to reference a taxonomy. On node edit, the term is still selected, but the related conditional fields are not showing. We have to unselect the term and re-select it for the fields to show (field data in dependent fields is preserved).
same issue as https://www.drupal.org/project/conditional_fields/issues/3168929
Comment #8
bunty badgujar commentedHello,
I am also facing the same issue with multivalued select field as selector. Until this issue gets solved, we have used following alternative.
Calling change event manually on edit form. Please feel free to suggest better alternative.
Form alter
Js code
Comment #9
darkodev commentedTried all patches for core and conditional_fields for D10, but nothing worked.
Thanks to workaround in #8. Works flawlessly for multi-select dependee fields when loading the node edit form.
Just one note that dependencies are now loaded through a service, like so: