# Conditional Views

**URL:** <https://forums.knack.com/t/conditional-views/10387>\
**Category:** Feature Requests\
**Created:** [January 15, 2015, 10:41pm UTC](https://forums.knack.com/t/conditional-views/10387 "2015-01-15T22:41:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nic](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@Nic](https://forums.knack.com/u/Nic)\
**Post date:** [January 15, 2015, 10:41pm UTC](https://forums.knack.com/t/conditional-views/10387/1 "2015-01-15T22:41:00Z")

</div>

Show / Hide views based on Record Values

---

<div class="post-metadata">

**Author:** ![Nic](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@Nic](https://forums.knack.com/u/Nic)\
**Post date:** [April 14, 2017, 12:06am UTC](https://forums.knack.com/t/conditional-views/10387/2 "2017-04-14T00:06:59Z")

</div>

This is now available under&nbsp; **Page Rules**! You can learn more here:&nbsp;[https://support.knack.com/hc/en-us/articles/115001059288-Page-Rules](https://support.knack.com/hc/en-us/articles/115001059288-Page-Rules)

---

<div class="post-metadata">

**Author:** ![PaulStary74512](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/paulstary74512/32/687_2.png) [@PaulStary74512](https://forums.knack.com/u/PaulStary74512)\
**Post date:** [September 1, 2016, 2:59pm UTC](https://forums.knack.com/t/conditional-views/10387/3 "2016-09-01T14:59:34Z")

</div>

&nbsp;Yes! &nbsp;We need to **show or hide** &nbsp;detail views from connected records&nbsp;based on the **value of a field**.

For Example: &nbsp;If an account is TYPE = Customer, then we show related details for products they have purchased. If an account TYPE is NOT a Customer, then we don't have these empty tables cluttering up the detail view.

---

<div class="post-metadata">

**Author:** ![AnneGrethe20989](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@AnneGrethe20989](https://forums.knack.com/u/AnneGrethe20989)\
**Post date:** [April 21, 2015, 7:52pm UTC](https://forums.knack.com/t/conditional-views/10387/4 "2015-04-21T19:52:36Z")

</div>

It would be great to have the option to hide tables that are empty - or hide them based on other fields.

---

<div class="post-metadata">

**Author:** ![Alessandro93092](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alessandro93092](https://forums.knack.com/u/Alessandro93092)\
**Post date:** [February 10, 2015, 11:20am UTC](https://forums.knack.com/t/conditional-views/10387/5 "2015-02-10T11:20:54Z")

</div>

Yes, this is something I'd like as well. Especially for hiding empty table views when there are no records, or menus with links to subpages when the status of the object does not allow certain workflows.

---

<div class="post-metadata">

**Author:** ![MarkWaschk18154](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@MarkWaschk18154](https://forums.knack.com/u/MarkWaschk18154)\
**Post date:** [February 9, 2015, 3:02pm UTC](https://forums.knack.com/t/conditional-views/10387/6 "2015-02-09T15:02:26Z")

</div>

I don't have any re-usable code, and what I've done isn't ideal because it happens on the client side where clients can actually see parts of the screen disappearing, depending on when the hooks activate. Best for it to happen on the server side instead...

---

<div class="post-metadata">

**Author:** ![BradStevens](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/bradstevens/32/140_2.png) [@BradStevens](https://forums.knack.com/u/BradStevens)\
**Post date:** [February 8, 2015, 3:51am UTC](https://forums.knack.com/t/conditional-views/10387/7 "2015-02-08T03:51:56Z")

</div>

I'll vote for this one too - Mark if you've achieved this with Javascript can you share some code?

---

<div class="post-metadata">

**Author:** ![MarkWaschk18154](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@MarkWaschk18154](https://forums.knack.com/u/MarkWaschk18154)\
**Post date:** [January 20, 2015, 2:46pm UTC](https://forums.knack.com/t/conditional-views/10387/8 "2015-01-20T14:46:13Z")

</div>

Funny that you created this one Nicolas, I was just about to add it in! This would make a big difference, and is a bit of a pain to write the javascript to do this kind of thing too. Would allow for a much richer UI experience when able to be leveraged.
