- Issue created by @m.stenta
- πΊπΈUnited States m.stenta
The field is using the default
boolean
field settings provided by thefarm_field
module:https://git.drupalcode.org/project/farm_eggs/-/blob/f3463ea34c2f9c52b69d...
https://github.com/farmOS/farmOS/blob/a18dff81390b82b8665cb25a86267bc368...
- πΊπΈUnited States m.stenta
It also shows in a "Produces eggs" column in the /assets/animal View. It would be nice if this column was hidden if there are no values. I think we do that by default in the Views config. But because the field is set to "No", the column gets displayed, even if you filter the View to non-poultry assets.
- πΊπΈUnited States m.stenta
Hmm I took a quick look into this and it doesn't appear that there is a way to completely hide "false" boolean fields in Drupal core. We can set the "Off" value to a blank string, but the label of the field will still show.
I suppose another option might be to change from a boolean to a select field with one option?
This makes me think: we may want to change the way other boolean fields work too, like "Is castrated" (in farmOS core). It doesn't make sense to always show that when the value is "No" (similar to this one).