---
title: "Displaying Fields conditionally"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/customizing-your-views/displaying-fields-conditionally/"
---

There are two methods to conditionally display a field's value on your View based on a value from another field.

 You can either do that [using the  shortcode](https://www.gravitykit.com/docs/gravityview/shortcodes/gvlogic-shortcode/) inside a Custom Content field, or you can use a new (and much easier) functionality from our [Advanced Filter extension](https://www.gravitykit.com/products/advanced-filter/) called "[Field Conditional Logic](https://www.gravitykit.com/docs/gravityview-pro/advanced-filter/field-conditional-logic/)".

 To use the  shortcode, you must first add a [Custom Content field](https://www.gravitykit.com/docs/gravityview/getting-started-gravityview/using-the-custom-content-field/) on your View:

![Fields list with "Add Field from Conditional Logic" button and visible table columns options](https://www.gravitykit.com/wp-content/uploads/2025/10/file-4GMkycNiAQ.png)
*And then we need to write the  sentence inside the field options panel:*![Custom content settings show conditional logic for displaying fields based on user input for name details](https://www.gravitykit.com/wp-content/uploads/2025/10/file-QGUD6fH0H3.png)
*And voilá:*![Table showing conditional content display: first name, name type, and associated custom content](https://www.gravitykit.com/wp-content/uploads/2025/10/file-uNwMkfuty7.png)
*For the record, here's how our form was created:*![Radio buttons toggle the visibility of the last name field based on selection](https://www.gravitykit.com/wp-content/uploads/2025/10/file-3JuM4WFrsv.png)