Hi, I have a content type with a price field. It's a taxonomy term reference field with two options (costs money and free) and I use a select box to pick which term I want to associate with this field when I create a node. If the node has 'costs money' selected as the value I want it to be displayed when a user views the node, like so:

Price: costs money.

That's easy enough of course.

However, if I select 'free' (the other term), I want the price field to be hidden ENTIRELY from the node display for users.

I've tried using the Field formatter conditions module but that only seems to allow me to hide the field based on conditions from an entirely different field.

Anyone know a way to solve this? (another module or some template.php logic/code would be perfect).

Thanks!

Comments

junestag’s picture

I ended up hacking the ffc module; changed line 145 from 'TRUE' to 'FALSE'. That allowed me to use the fields own values as conditions.

WorldFallz’s picture

I use conditional_fields for this type of task.