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.
Hi All. What I'm trying to do is this: I have two image fields. If image field number one has content (is filled) I want it to display and the 2nd image field to be hidden. If image field number 1 is empty I want image field number two to display. I can't seem to get this module to do this. Is this do-able?
Comments
Comment #2
Subhransu.addweb CreditAttribution: Subhransu.addweb at AddWeb Solution Pvt. Ltd. commentedFor your purpose please follow the below steps:
1) Install view Views Conditional module.
2) Add both image field in view.
3) After that add "Views: Views Conditional" Field and setting
"If this field... " = (Select first image field firm dropdown.).
"Is..." = "Empty".
"Then output this..."=(put second image field that get form Replacement Variables)
4) Please check your output.
Hope this helps you.
Thanks!
Comment #3
tedwyer CreditAttribution: tedwyer commentedHi Denisha. Thanks for the suggestion. I tried it and the result is that when both fields are not empty, both display. I need one or the other but never both.
Comment #4
Subhransu.addweb CreditAttribution: Subhransu.addweb at AddWeb Solution Pvt. Ltd. commentedHi Tedwyer, make second image "Exclude from display ", and recheck.
Comment #5
Subhransu.addweb CreditAttribution: Subhransu.addweb at AddWeb Solution Pvt. Ltd. commented