Page 1 of 1

Conditional formatting

Posted: Wed Dec 26, 2018 4:30 pm
by Johnnyt
I am sorry for double posting, but I suspect I should have postet under this topic in the first place, and not under "Using StampCAT".
Maybe moderator can remove posting in "Using StampCAT" if inappropriate.

I guess this applies to any Cat-app if it is doable or not.
I have three date fields in my StampBrowse.xsl. For two of the date fields I want to compare them against the third one. Thereafter I want to highlight and change color to let say green if my conditions kicks in. Conditions goes like this:
If Custom31 has higher (newer) date than PostmarkDate, then highlite (bold) and change color to green for the PostmarkDate.
Or if Custom32 has lower (older) date than PostmarkDate, then highlite (bold) and change color to
blue for the PostmarkDate.
If doable can someone please help me with the code?

Re: Conditional formatting

Posted: Fri Jan 11, 2019 9:48 am
by Alex Ivanovich
Hi Johnnyt ;)

You could insert sample screenshots to understand what you want to see :roll:
I do not use StampCA (I have to install it) :|
I use BookCat (and CATVids), I have something similar in the code (modified) ;)