Select to view content in your preferred language

Date constraint is not working

988
3
04-20-2020 03:12 AM
GeorgeFloros1
Emerging Contributor

Hello,

I have a "date" field. I try to implement the following:

.>= today()

on the "Constraints" column, without any success.

Searching previous posts, I made sure that I have the latest version of ArcGIS Connect (3.9) installed.

I also tried this workaround without success:

date(format-date(${value},'%Y/%m/%d'))>= today()

Any tips?

Thank you,

George

3 Replies
GeorgeFloros1
Emerging Contributor

The constraint is implemented upon submission, not before that, so it does work.

Leaving it here for future reference.

Please correct me if I'm wrong.

0 Kudos
leo_SwissGIS
Occasional Contributor

Hi George,

Indeed, it seems that since 3.5, the validation occurs only when the form is submitted.

I made a new thread some time ago about that issue:

https://community.esri.com/thread/244051-constraintvalidation-occurs-only-when-the-survey-is-submitt...

And Gee made an ArcGIS idea to change that behavior:

https://community.esri.com/ideas/17630-constraint-messages-to-show-up-on-the-fly

Please consider voting for it !

Léo

GeorgeFloros1
Emerging Contributor

Hello leo

Thank you for your reply!

Voted

Regards,

George

0 Kudos