# Field visibility conditions

{% embed url="<https://www.youtube.com/watch?v=4XXbXDF9ccU>" %}

Field visibility conditions allow you to define exact conditions for when a given field should be shown to app users. They can be used in several places:

* Collection views
* Record pages
* Forms to add new records

In this video, learn how to set field visibility conditions based on field values and based on logged in user parameters to control when a particular field should be visible.

### Setup field conditions

To add new conditions to a field, open the field's configuration in either a *Details, Highlights* or a *Form*.

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-6d5d2fe1fa628f01089477061a0c0a527686fb29%2Fimage.png?alt=media)

Toggle **on** the "Only show when conditions are met" switch

This will add a blank condition to the field - the box grows to give you more space

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-9a5efb7e07909501a88b4fb51ab49d3e18e936fb%2Fimage.png?alt=media)

Choose a field, an operator and a value (if necessary) For example, this will hide the email field if its value is empty.

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-2ab11bcf27bb2036265b6f22498693099a865581%2Fimage.png?alt=media)

Conditional fields respond immidately to changes to fields, which makes them great for implementing branching in forms, or changing how a record view is displayed.

For example, the following rule only shows the "Company" field if the email contains "@noloco.io" OR if the user is marked as *internal*

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-dc93fc16f2bc7725d6fb2b0ad55b59e7d1634f85%2Fimage.png?alt=media)

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-97016b0b756aadeedb493e19c2b575a7136a4ebf%2Fconditional-field-gif-sm.gif?alt=media)

### *Forms example*

*The below form hides several fields if* status *is **Cancelled**,* the logic being that there's no need to add house details such as number of beds, if the property is already cancelled.

![](https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-6d102ccde63e0ef5ef7b639179709202674e4282%2Fconditional-form.gif?alt=media)
