Date field in Field Maps form fails to calculate

112
2
Jump to solution
05-16-2022 03:34 PM
JanetSilb_Spike
New Contributor III

I want to autocalculate my date field to 'today' in the Field Maps web app form. I have set this express and the test returns the result I want. However when I save the form and open it in the Field Maps mobile app it shows the error "Failed to calculate" and when try to edit in the web map, the map hangs up.  Would it matter that the layer has existing records?

JanetSilb_Spike_0-1652740424197.png

 

0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Frequent Contributor

I think it is getting confused passing two values to the expression (current value of Monitoring_Date field, and Todays date)

Since this is set on the field to calculate, you only need to return the date.

Today()

Though, I have seen where people have issue with this and using Now() seems to work better.

Now()

 

R_

 

View solution in original post

0 Kudos
2 Replies
RhettZufelt
MVP Frequent Contributor

I think it is getting confused passing two values to the expression (current value of Monitoring_Date field, and Todays date)

Since this is set on the field to calculate, you only need to return the date.

Today()

Though, I have seen where people have issue with this and using Now() seems to work better.

Now()

 

R_

 

0 Kudos
JanetSilb_Spike
New Contributor III

Thanks @RhettZufelt - that did in fact work! 

0 Kudos