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>
</attribute>
<eocfield name="entrydate"/>
<if test="1=0">
<expression name="how_old">datediff(hh,entrydate,getUTCDate())</expression>
</if>

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

You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.