How to show or hide CP fields based on a taxonomy field in Statamic 3

Sometimes, you may want to control the visibility of a field based on its value. This is how you can do it.

Published October 2nd 2023

The code:

if:
  tax_field_name: 'contains taxonomy_slug::term_slug'

An Example:

Coming soon.