Select to view content in your preferred language

Date constraint ">=today()" not working properly in web form

1344
3
Jump to solution
09-27-2018 01:21 PM
NickDierks1
Occasional Contributor II

I've got a survey that's published as web form (made via Connect). In it, there's a date field with a constraint of ".>= today()". This works just fine within Survey123 Connect and the field app--any date that is on or after today is accepted. But on the web form, the question is only accepting dates after today.

Any idea what's causing this?

Also, as an aside, the Formulas page seems to have this constraint example backwards:

This formula, when applied to a date field, will prevent the user from entering a value earlier than today:

.<= today()

0 Kudos
1 Solution

Accepted Solutions
JohnathanHasthorpe
Esri Regular Contributor

Hi Nick - this survey was on our QA environment. The issue should be fixed in 3.1.

View solution in original post

3 Replies
JohnathanHasthorpe
Esri Regular Contributor
0 Kudos
NickDierks1
Occasional Contributor II

That seems to work just fine. Did you do anything differently? This is how my question is set up:

typenamelabelhintconstraintconstraint_messagerequired
dateDeadlineDue DateSelect a due date for completing the map..>=today()Please select a due date of today or later.yes
0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

Hi Nick - this survey was on our QA environment. The issue should be fixed in 3.1.