Date constraint ".<=today()" not working properly

668
3
07-29-2019 03:45 PM
neiden
by
New Contributor III

I'm working with a user to develop a web form for public reporting. The Excel file has 2 date questions - BB_HarvestDate and CheckinScheduledDate. The BB_HarvestDate field has a constraint of .<=today() to validate that the user selects a date of today or in the past. The CheckinScheduledDate field has a constraint of .>=today() to validate that the user selects a date of today or in the future. Both of these constraints worked perfectly in the web form in 2 different browsers, mobile browsers (Safari, Chrome) and the native iOS S123 app last Friday.

This morning the date constraint on just the first date question (BB_HarvestDate) is not working properly in the native iOS app. If a user selects today's date, it throws an error and doesn't allow submission of the record. Today IS July 29, 2019. 

Data constraint error .<=today()

Here's a screenshot of the question w/ its constraint .<=today (this is NOT working in the native iOS app). 

The other date question (CheckinScheduledDate) with the constraint of .>= today() works fine. 

  Has anyone else ran into this? 

0 Kudos
3 Replies
IsmaelChivite
Esri Notable Contributor

Hi n eiden‌   This issue looks the same as this one. We are preparing an update to the Survey1213 mobile app to address this problem. The update is planned to be made available on Thursday August 1. The discussion highlighted below also includes a workaround in case you want to address this immediately. Sorry for the inconvenience.

neiden
by
New Contributor III

Hi Ismael-

Thanks for the quick response & information, including the link. I'm

testing the following to use instead of .<=today():

date(format-date($,'%Y/%m/%d'))<= today()

Looking forward to the update on Aug 1 to see if it resolves the issue.

~Nicole

0 Kudos
Shwu-jingJeng
Esri Regular Contributor

Hi Nicole,

 

The issue is still repro with current production build v.3.5.164.

But we have addressed the issue in the later build, including beta. The newer build with the fix will be available on August 1 and you can also test the beta build 3.6.56 on our EAC website.

0 Kudos