Jump to content

jgfeller

Members
  • Posts

    1
  • Joined

  • Last visited

jgfeller's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am attempting to change the background color in a report search results page using an IF function. I tried to use the following code but for some reason it does not work. I am sort of new at this so I may just be missing something obvious but I cannot find it. <script> var isi = document.getElementById("visi[@field:id#]"); if ([@calcfield:1#] > 6){isi.parentNode.parentNode.style.backgroundColor = '#58ff33';} else if([@calcfield:1#] <= 6 && [@calcfield:1#] >= 4){isi.parentNode.parentNode.style.backgroundColor = '#ffac33';} else if([@calcfield:1#] < 4){isi.parentNode.parentNode.style.backgroundColor = '#ff3b33';} </script>
×
×
  • Create New...