Boolean field: hide (in display) if unchecked 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).
OK, so it is possible and actually rather simple. Here's how I did it in the end:

Edit the field's settings:
"value if checked" -> use the text you want to see displayed when checked
"value if unchecked" -> leave empty

And then under Content type > Manage Display, hide the label for this field.

This way, only the value of this field will be shown.
Since the value when unchecked is empty, nothing will be shown when the field is not checked.