# Create a field to show a value IF there is a connected record

**URL:** <https://forums.knack.com/t/create-a-field-to-show-a-value-if-there-is-a-connected-record/6822>\
**Category:** Get Answers\
**Created:** [February 12, 2019, 1:01pm UTC](https://forums.knack.com/t/create-a-field-to-show-a-value-if-there-is-a-connected-record/6822 "2019-02-12T13:01:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NourFayek02147](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/nourfayek02147/32/230_2.png) [@NourFayek02147](https://forums.knack.com/u/NourFayek02147)\
**Post date:** [February 12, 2019, 1:01pm UTC](https://forums.knack.com/t/create-a-field-to-show-a-value-if-there-is-a-connected-record/6822/1 "2019-02-12T13:01:53Z")

</div>

Hi,

I am trying to create a field to show if there is a connected record or not.

For example, I have a list of sites (Parent), each site (Parent) can have multiple photos (childs). I want to show a specific value if there is NO photos connected to that site.

Like there should be a way to indicate if there is any connected record or not.

Any help ?

---

<div class="post-metadata">

**Author:** ![NourFayek02147](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/nourfayek02147/32/230_2.png) [@NourFayek02147](https://forums.knack.com/u/NourFayek02147)\
**Post date:** [February 12, 2019, 3:00pm UTC](https://forums.knack.com/t/create-a-field-to-show-a-value-if-there-is-a-connected-record/6822/2 "2019-02-12T15:00:30Z")

</div>

Works perfectly. Thank you very much

---

<div class="post-metadata">

**Author:** ![JulianKirkness](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/juliankirkness/32/770_2.png) [@JulianKirkness](https://forums.knack.com/u/JulianKirkness)\
**Post date:** [February 12, 2019, 2:03pm UTC](https://forums.knack.com/t/create-a-field-to-show-a-value-if-there-is-a-connected-record/6822/3 "2019-02-12T14:03:56Z")

</div>

What you could do is have a count field in the parent record which counts the number of child records and then use a Rule in the Scene or View to hide / show stuff if the value is zero.

Hope this helps?
