Hello everyone. I am using some code I modified to check for inspection performed within 90 days and if its over 90 days, it would revert to needing inspection.
To display this, I use green glow for inspected and red for needing inspection.
The code is as follow
var datedata = DateOnly($feature.InspectionDate);
var today_date = DateOnly(dateadd(Today(), -90, 'days'));
var daydiff = DateDiff(datedata, today_date, 'days');
if (daydiff < -90){
return "Not Inspected Last 90 Days";
}
if (daydiff > -90){
return "Inspected";
}
else{
return "Not Inspected Last 90 Days";
}
Everything works in the webmap and on any desktop agol application, but where I need it the most is on field maps for inspectors to know which one was already inspected.
The glow is not showing up in field maps.
Has anyone tried this? Is this a bug?
Thanks