I have a content type with a boolean field (checkbox). Basically, what I'm trying to achieve is this:
- If this field is checked, only show the label (when viewing the page)
- If this field is unchecked, don't show the field at all (no label and no value)
Is there a simple way of doing this? (Without resorting to Views or custom code)
I've noticed that if I use "Check boxes/radio buttons" as widget type for this field, it comes close to what I want, since it offers three values to choose from (yes, no, and N/A), and if N/A is selected, the field isn't rendered on the display page.
However:
- I don't want 3 values to choose, but 2. (3 might be confusing for users, and having to explain "Don't use the 'no' value" really isn't a good solution.)
- I don't want the value to be displayed when "Yes" is selected (only the label).