# Dynamic Content Control: Implementing Hide/When Formulas in Your Headless CMS Content Model

> Source: https://agilitycms.com/docs/developers/dynamic-content-control-implementing-hide-when-formulas-in-your-headless-cms-content-model

## What is Dynamic Content Control and Why is it Important?

Unlocking the full potential of a headless CMS requires more than just data storage; it demands dynamic control over content presentation. In this article, we explore the transformative power of implementing hide/when formulas for fields in your content model, revolutionizing how users interact with and consume content - right inside Agility.

Traditional content models often offer static display options, limiting users to predefined visibility settings. However, by integrating hide/when formulas, users gain flexibility to conditionally hide or display fields. This nuanced control empowers content creators to tailor the viewing experience, ensuring that users only see relevant information when and where it matters most.

## How Does it Work?

Our hide/when formulas are based on a simple query language of operators and operands, which evaluate the values of other fields in your content model.

For example, this is a hide/when formula dictating that when the "description" is empty, the field that the formula is applied to will be hidden:

```
description[eq]""
```

We support 4 different operators:

- [eq] Equals
- [ne] Not equals
- [lt] Less than
- [gt] Greater than

We also support parenthesis, so you can get complex with your hide/when formulas, for example:

```
((age[gt]24&&name[eq]"Kevin")||name[eq]"Brendan")||admin[eq]true
```

To use a hide/when formula, navigate to your content model, click on the "Advanced" tab, and scroll down to these text inputs:

![Hide/when field](https://cdn.aglty.io/agility-cms-docs/images/block-editor/image-04262024191602.png)

Enter a hide/when formula and it will be applied to all content

---

## Related pages

- [Content-first Approach](https://agilitycms.com/docs/developers/content-first.md)
- [Content Models](https://agilitycms.com/docs/developers/content-models.md)
- [Component Models ](https://agilitycms.com/docs/developers/component-models.md)
- [Fields](https://agilitycms.com/docs/developers/fields.md)
- [Nest, Link or Share? Choosing Linked Content Field Types](https://agilitycms.com/docs/developers/linked-content-field-types.md)
- [Getting Started with Linked Content](https://agilitycms.com/docs/developers/getting-started-with-linked-content.md)
- [Sitemaps](https://agilitycms.com/docs/developers/sitemaps.md)
- [Page Models](https://agilitycms.com/docs/developers/page-models.md)
- [Setting Up Preview](https://agilitycms.com/docs/developers/setting-up-preview.md)
- [Handling Agility URLs](https://agilitycms.com/docs/developers/handling-agility-urls.md)
- [Deployment & Code Repositories](https://agilitycms.com/docs/developers/deployment-code-repositories.md)
- [Tagging Content in Agility](https://agilitycms.com/docs/developers/tagging-content-in-agility.md)
- [Managing SEO for Developers](https://agilitycms.com/docs/developers/manging-seo-for-developers.md)
- [Mastering Nested Linked Content in Agility CMS: Enhance Hierarchical Data Management](https://agilitycms.com/docs/developers/nested-linked-content.md)
- [Advanced Field Validation with Regular Expressions](https://agilitycms.com/docs/developers/advanced-field-validation-with-regular-expressions.md)
- [Grouping Components into Tabs, Accordions, and Sections](https://agilitycms.com/docs/developers/grouping-components-into-tabs.md)
- [Conditional & Cross-Field Validation](https://agilitycms.com/docs/developers/conditional-and-cross-field-validation.md)
- [Set Up Web Studio with Any Framework](https://agilitycms.com/docs/developers/web-studio-setup-any-framework.md)
- [Troubleshooting Web Studio](https://agilitycms.com/docs/developers/troubleshooting-web-studio.md)
- [Content Modeling Anti-Patterns](https://agilitycms.com/docs/developers/content-modeling-anti-patterns.md)
- [Designing a Taxonomy That Scales](https://agilitycms.com/docs/developers/designing-a-taxonomy.md)
- [Map Your Design System to Component Models](https://agilitycms.com/docs/developers/design-system-to-component-models.md)
- [Structured Content Explained](https://agilitycms.com/docs/developers/structured-content-explained.md)
- [Beyond the Website: Apps, Kiosks, Email and In-App](https://agilitycms.com/docs/developers/beyond-the-website.md)
- [Make Your Content Model Agent-Friendly](https://agilitycms.com/docs/developers/agent-friendly-content-models.md)
- [Component Visibility](https://agilitycms.com/docs/developers/component-visibility.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
