# Conditional panel not showing in subform grid view

**URL:** https://speciforum.org/t/conditional-panel-not-showing-in-subform-grid-view/2086
**Category:** Get Help
**Created:** [November 1, 2024, 11:52am UTC](https://speciforum.org/t/conditional-panel-not-showing-in-subform-grid-view/2086 "2024-11-01T11:52:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sorosoro](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sorosoro](https://speciforum.org/u/sorosoro)
#### Post date: [November 1, 2024, 11:52am UTC](https://speciforum.org/t/conditional-panel-not-showing-in-subform-grid-view/2086/1 "2024-11-01T11:52:38Z")

</div>

Hi,

I have a panel with multiple rows that are shown or not depending on the value of the preparation type field. The conditional rendering works well but display doesn’t.

In the form view, the field Items SKU is shown when the preparation type is Skull.

 ![Screenshot 2024-11-01 115946](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/c/c885bf3b9b3257f257f93f5c20f36cccab451091.png)

If no condition is met, then the field Items is not shown:

 ![Screenshot 2024-11-01 120101](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/d/d928514b63d524c972b9e91db0a693a3325b050a.png)

However, in the collapsed grid view the field Items does not appear regardless of whether the condition is met or not:

 ![Screenshot 2024-11-01 120019](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/7/736e3602f1dfb0cb5951d56d5196b67e6bbb6cd9.png)

If the row is expanded, the field is shown

 ![Screenshot 2024-11-01 120144](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/a/af0196550a1b5172609e2025e6352340f54ce816.png)

I could just leave the form view but the grid view is so much better to see at once all the available preparations for a specimen.

Is there a way to show the conditional panel in the grid view?  
Thanks.

---

<div class="post-metadata">

### Author: ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)
#### Post date: [November 13, 2024, 6:37pm UTC](https://speciforum.org/t/conditional-panel-not-showing-in-subform-grid-view/2086/2 "2024-11-13T18:37:53Z")

</div>

Hi @sorosoro,

Thank you for reaching out regarding the issue with the conditional rendering of fields in the grid view.

Unfortunately, fields that are part of panels cannot be displayed in the grid view, as they are ignored in that context. To show specific fields in the grid view, you’ll need to create a separate grid view definition that includes any fields contained within panels. I just wrote some new instructions for Specify 7 that details how to create a new form definition _just_ for grid/table view– see below:

> [@Edit the Form Grid to Display Different Fields Than the Subform](https://speciforum.org/t/edit-the-form-grid-to-display-different-fields-than-the-subform/435):
>
> To customize the grid view to show different fields than the subform, follow these two main steps: Create a second view and view definition for the table. Point the original table grid view definition to the newly created table view definition. In this example, we will use Preparation, but the steps apply to all tables with grid views. Steps to Customize the Grid View Navigate to the Form Definition Access the form definition you want to edit using [App Resources](https://speciforum.org/t/app-resources-in-specify-7/582) or the [form meta menu](https://speciforum.org/t/form-meta-menu/844) to g…

---

<div class="post-metadata">

### Author: ![sorosoro](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sorosoro](https://speciforum.org/u/sorosoro)
#### Post date: [November 14, 2024, 8:19am UTC](https://speciforum.org/t/conditional-panel-not-showing-in-subform-grid-view/2086/3 "2024-11-14T08:19:13Z")

</div>

Thanks Grant! I will try that out.
