Jump to content

Yusuf

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Yusuf's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I am having an issue with working with the date field. What I am trying to do is: I want to change the background color of the rows (records) on a data page if a date from that record is older than the current date (Timestamp). Please see my source code from the HTML block below. It seems working if the date and the current date is from the same year. However, it is not working if the dates (record date and current date) are from two different years. How can I solve this issue? ........ [@field:files_File_Number] <a id="visi[@field:actions_Action_ID]"> <script> var isi = document.getElementById("visi[@field:actions_Action_ID]"); if('[@field:actions_Reminder_Date]'<'[@cbTimestamp]'){ isi.parentNode.parentNode.style.backgroundColor = '#fcd4d4'; } else{ isi.parentNode.parentNode.style.backgroundColor = '#NoColor'; } </script></a> ........
×
×
  • Create New...