Home > Forum > Actions > Item list setting background color based on Date diff

Item list setting background color based on Date diff
0

Hello all,

I trying to set up a form rule that sets the cell background based on the days difference between a column date and today's date.
This only works after clicking on the save but I want the background to be set as soon as they define the Date column.
Probably this will only work with Javascript functions but I don't have any experience with that.

I want to create an alert if they select a date where the difference is less than 2 days. If I could also display some text, it would be great, but if the only option is the background color, it's also fine.

At the moment I have the form rule set on callback inside the item list configuration.

Thank you!