Hello,

I have one question. Does this module work with image fields? I can not get it run.
I want that one imagefield is hide if another has a value.

Thanks for any help!

Best regards
Frank

Comments

peterpoe’s picture

Status:Active» Fixed

Dependent image fields work. You can read the new documentation to check that you got everything right: http://drupal.org/node/1704126

fraweg’s picture

Thanks a lot for your fast answer!

Best regards
Frank

Status:Fixed» Closed (fixed)

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

jfarry’s picture

Status:Closed (fixed)» Active

Hi Guys :)

I'm experiencing a bit of a problem between Conditional Fields and Image Field uploads in Drupal 7 as well. I've read the guide and have tried quite a few different permutations of options, but so far can't seem to achieve what I'm after.

I have two fields, one is an embedded media (file) field and an Image field. I want one to disappear when the other is filled. This works fine if I start to fill out the embedded medial field, the Image field disappears no problems, but if I upload an image through the Image field, the embedded media field doesn't disappear. I've tried setting the selectors to various form elements for the image field as well, but with undesirable results. If I set the selector to the image field Upload button, the embedded media field is constantly hidden. If I set the selector to any other form element of the image field, the embedded media field never disappears. I've also tried setting the dependee action to Focus and targetted the Submit button with the selector, but that doesn't remove the embedded media field either.

One more thing, if I set the image field to disappear and be emptied when the embedded media field is filled, the image field itself is not emptied, but the image upload button has its text removed. This shouldn't be a problem when I can get the other field to disappear, just thought I'd add it as a side note.

I feel like I'm missing something small and stupid, but I've changed so many thing now that I don't know what could be left, lol.

Thank you for your time :)
Josh

liquidcms’s picture

Category:support» bug

i am also pretty sure that this does not work with image fields as the Dependee: http://screencast.com/t/FqtLfeJDM5YN

Jason Dean’s picture

I'm also unable to use an image field as a dependee. The dependent field shows regardless.

alpho81’s picture

Same problem here. I'm also unable to use an image field as a dependee.

fonant’s picture

Issue summary:View changes

I have a need to only show a field if there is one or more images uploaded into a multiple-value file / image field. I can't get it to work, the dependent field is always shown, even when no images have been uploaded. Would be nice if the "Empty" test worked for a multiple-value file field with no files.