Hi Kevin,
Thank you for your response and the Arcade resource. Since my data is related to linked tables, I will like to color the inspected points according to the inspection date once the form is completed and submitted.
I am new to Arcade and I've tried the code below but the inspected points did not change color.
var StartDate = now()
var InspectionDate = Round(DateDiff($feature.DateInspection, StartDate, "days"))
if (Round(DateDiff($feature.DateInspection, StartDate, "days"))==0) {
var hour = Round(DateDiff($feature.DateInspection, StartDate, "hours"))
var currentdate = When(hour>5, 1, hour>3, 2, hour>1, 3,1)
return currentdate
}
else{
return 0
}