Can conditional fields module, or another module like it, make a field hidden/shown using an "OR"-like operator? For example,

if field A = 'yes' OR field B = 'no', then show field C.

Right now the conditional field module treats everything as an "AND" operator. For example, if field A = 'yes' AND field B = 'no', then show field C. I want field C to show up on either one of those conditions, not both.


Maybe, the Views If Empty module could be of use to you. Here is a quote about it (from the module's project page):

... enables a view to output a field if another field is empty.

You need Views If Empty when you have a content type with an embedded video and an imagefield thumbnail. The nodes always have the images but occasionally have a video. You want your view to display the image field when the video field is empty, display the video field when available, and never display both.

| improve this answer | |
  • Thanks for the suggestion, however, it seems that this works only on views. I need something that will work on the form. – user785179 Apr 9 '12 at 16:58

The new version of the conditional fields module is taking care of this.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.