# Display Rules Using Values from Connected Object's Field

**URL:** <https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543>\
**Category:** Get Answers\
**Created:** [June 30, 2023, 1:33pm UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543 "2023-06-30T13:33:54Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![Jon1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jon1](https://forums.knack.com/u/Jon1)\
**Post date:** [October 4, 2023, 2:11am UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/41 "2023-10-04T02:11:19Z")

</div>

Hey Norm, couldn’t get your suggestion to work.

---

<div class="post-metadata">

**Author:** ![Dean2](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@Dean2](https://forums.knack.com/u/Dean2)\
**Post date:** [October 13, 2023, 12:53am UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/42 "2023-10-13T00:53:58Z")

</div>

Norm

I’m a little confused. I thought \_cfv was Colorize Field by Value and not Compare Field Value as I’m trying to achieve something a little similar i.e. I would like a hide the Location field for the line item of an Order if the Location field in the parent is not blank.

Dean

---

<div class="post-metadata">

**Author:** ![NormandDefayette\_CortexRD](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/normanddefayette_cortexrd/32/855_2.png) [@NormandDefayette\_CortexRD](https://forums.knack.com/u/NormandDefayette_CortexRD)\
**Post date:** [October 13, 2023, 1:27pm UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/43 "2023-10-13T13:27:54Z")

</div>

> [@NormandDefayette\_CortexRD](#):
>
> \_cfv =[field\_346,is,YES,h], [ktlTarget, $(‘#view\_233.kn-table-link:contains(“test1”)’)]

Jon,

I think I found the problems:

1. **.kn-table-link** is only for the headers. You must use **.kn-link** for the cells.
2. There’s a space missing after view\_233

Try this:

`_cfv =[field_346,is,YES,h], [ktlTarget, $('#view_233 .kn-link:contains(“test1”)')]`

Norm

---

<div class="post-metadata">

**Author:** ![NormandDefayette\_CortexRD](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/normanddefayette_cortexrd/32/855_2.png) [@NormandDefayette\_CortexRD](https://forums.knack.com/u/NormandDefayette_CortexRD)\
**Post date:** [October 13, 2023, 1:30pm UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/44 "2023-10-13T13:30:10Z")

</div>

Dean2,

You’re right, but **\_cfv** also does some comparisons to achieve the desired effect.

Initially, only colors were supported, hence the name. But I later decided to extent the effects to hide, and flash.

Hope this clarifies the matter,  
Norm

---

<div class="post-metadata">

**Author:** ![Jon1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jon1](https://forums.knack.com/u/Jon1)\
**Post date:** [October 13, 2023, 1:39pm UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/45 "2023-10-13T13:39:54Z")

</div>

Thanks Norm, I got it to work a few days ago with the help of Amanda.

If you remember, one of the issues was the spacing between keyword and “=”.

Once I removed space, it worked… JON

---

<div class="post-metadata">

**Author:** ![NormandDefayette\_CortexRD](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/normanddefayette_cortexrd/32/855_2.png) [@NormandDefayette\_CortexRD](https://forums.knack.com/u/NormandDefayette_CortexRD)\
**Post date:** [October 13, 2023, 1:49pm UTC](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543/46 "2023-10-13T13:49:12Z")

</div>

Dean,

For what you try to do - not sure if I understand correctly your use case, but I think you’ll need the **\_hf** keyword (Hidden Field), along with the new **ktlCond** option. But this is not ready yet. I’ll try to find the time to tackle this shortly in the coming days.

**\_hf** is used in forms and details views to hide both the label and the value. It will soon be possible to specify the condition of its application, based on a value from the same view, as well as another view.

Thanks for being patient…  
Norm

[Previous page](https://forums.knack.com/t/display-rules-using-values-from-connected-objects-field/14543.md?page=2)
