Home > WebEOC > Admin Guide > Board Building Tips > Force Color Change After x Hours

Force Color Change After x Hours

Table of contents
No headers

To force a color change after a set number of hours, use the following code:

<attribute name="bgColor">
<if test="@how_old &gt; 12">red</if>
<eocfield name="entrydate"/>
<if test="1=0">
<expression name="how_old">datediff(hh,entrydate,getUTCDate())</expression>

In the example, the color change is set to occur after 12 hours. 

Last modified



This page has no classifications.