# Display Rules applied to Table Row

**URL:** <https://forums.knack.com/t/display-rules-applied-to-table-row/9315>\
**Category:** Feature Requests\
**Tags:** display-rules, tables\
**Created:** [September 20, 2018, 4:10am UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315 "2018-09-20T04:10:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brockmassi65785](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Brockmassi65785](https://forums.knack.com/u/Brockmassi65785)\
**Post date:** [September 20, 2018, 4:10am UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/1 "2018-09-20T04:10:00Z")

</div>

As a Builder, I would like to be able to set up some display rules on tables at the view level and then choose which fields those rules get applied to. Currently I have to copy / re-setup those rules on each column I want to apply it to.

---

<div class="post-metadata">

**Author:** ![BartB\_NL](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/bartb_nl/32/3658_2.png) [@BartB\_NL](https://forums.knack.com/u/BartB_NL)\
**Post date:** [March 13, 2021, 2:55pm UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/2 "2021-03-13T14:55:37Z")

</div>

Having a table-views with a lot of display rules (one is 30 fields that all have 12 displayrules), it would be nice to be able to copy a field incl. display properties, and be able to thange the field (source) of te column  
  
PS. Note that in the new builder a copy function is added the copy displayrules in within the column

---

<div class="post-metadata">

**Author:** ![Shrey](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Shrey](https://forums.knack.com/u/Shrey)\
**Post date:** [March 20, 2020, 3:40am UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/3 "2020-03-20T03:40:33Z")

</div>

You could set the css via JS:

document.querySelectorAll(".kn-table td.field\_XXX").forEach(item =\> {if(item.querySelector("span").innerText == "COMPARE-VALUE") item.style.backgroundColor = "#e31d13";})

---

<div class="post-metadata">

**Author:** ![JaimeMena04683](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JaimeMena04683](https://forums.knack.com/u/JaimeMena04683)\
**Post date:** [March 19, 2020, 11:24pm UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/4 "2020-03-19T23:24:11Z")

</div>

Hi, I have the same problem too. is there any update or progress on this matter? Maybe using specific CSS?

---

<div class="post-metadata">

**Author:** ![BrandonJoh40602](https://avatars.discourse-cdn.com/v4/letter/b/f9ae1b/32.png) [@BrandonJoh40602](https://forums.knack.com/u/BrandonJoh40602)\
**Post date:** [June 19, 2019, 4:54pm UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/5 "2019-06-19T16:54:52Z")

</div>

ABSOLUTELY - this is a MUST HAVE feature.&nbsp; I have tables displaying 8 columns of project status and I have 6 statuses...so to setup color-coded rows for each status, I have to touch 48 display rules and set the background colors.&nbsp; Recently I had to change 2 of the status names, and had to go back and adjust 16 display rules.&nbsp;&nbsp;

&nbsp;

PLEASE ADD this feature to adjust the display rule on ALL fields (columns) in a table!&nbsp; That would be fantastic!

---

<div class="post-metadata">

**Author:** ![MichaelSha95380](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@MichaelSha95380](https://forums.knack.com/u/MichaelSha95380)\
**Post date:** [August 23, 2021, 6:06pm UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/6 "2021-08-23T18:06:03Z")

</div>

Just want to add support to this - I’d like to format an entire row based on the contents of one column, but at the moment that means copying the rule across multiple comments which is needlessly time consuming, but also deters updating the rule in the future. This is a really important feature in my opinion that is missing just now.

---

<div class="post-metadata">

**Author:** ![CarlHolmes](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/carlholmes/32/2814_2.png) [@CarlHolmes](https://forums.knack.com/u/CarlHolmes)\
**Post date:** [May 19, 2023, 5:05am UTC](https://forums.knack.com/t/display-rules-applied-to-table-row/9315/8 "2023-05-19T05:05:27Z")

</div>

[![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/a/abf1540b0c638fb8c6960aec3387b1a7a3309bce.jpeg "Table Backgrounds - Knack Database") ](https://www.youtube.com/watch?v=x81mDTzEECo)
