Hello!
Not sure if it's me or something else on this one, but I need your help! For our workflow, I want to populate a date field with the current date and time IF (1) it should be populated based on other choices and (2) it's not already populated.
What I've noticed seems to be happening is that even if the date has a value, when the arcade is evaluated in Experience Builder, the value is coming back empty. This might be a bug...
Here's the arcade for the Check Out Time in the following screenshots.
var checkOutTime = $feature.CheckOut;
var attendance = $feature.Attendance;
var checkOut = $feature.CheckOutChoice;
if(attendance=='Present' && checkOut == 'Yes'){
if (2 == 1){
checkOutTime = Now();
}
}
return checkOutTime;
In this example, both the check in and check out time are populated. Here's how the edit form looks in the web map.

And here's the same record in the edit widget in Experience Builder. Since the check out date is coming through as null -- i'm thinking that the value isn't getting sent to the arcade expression maybe?

The values are being shown as expected in the pop up displays ..

Thanks for any ideas you might have!