overdue dueDate statement

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
User avatar
FineWine
Site Admin
Posts: 886
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

overdue dueDate statement

Post by FineWine »

I am trying to modify an InfoTemplate so that in the "boxborrowed" if the [key:dueDate] is past (overdue) then the [translate:Due Date] and [key:dueDate] blink <blink> </blink.

Is this possible?
User avatar
Conor
Top Dog
Posts: 5345
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: overdue dueDate statement

Post by Conor »

The Pedias themselves don't have an isOverdue tag, that you would be able to use in the <!--IF statement. You would need to compare the due date against the current date to do this you would use JavaScript. Call a function that takes [key:dueDate] and this function would insert the <blink> tag into the current HTML element if appropriate.
User avatar
FineWine
Site Admin
Posts: 886
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: overdue dueDate statement

Post by FineWine »

Conor wrote:The Pedias themselves don't have an isOverdue tag, that you would be able to use in the <!--IF statement.
Thanks Conor. Java script is a bit over my head. Perhaps the tag isOverdue can be placed on the Future List.

Cheers
Post Reply