Does Warning message work on dates?

690
8
Jump to solution
10-22-2019 01:44 PM
DougBrowning
MVP Notable Contributor

I have a constraint that works fine.  When I move it to a warning I get nothing.  I have seen it work on a GeoPoint but trying on a date just nothing happens in Connect.

What am I missing?

bind:warning

.>date(decimal-date-time(now()) -  7)

bind:message

Calibration has been over 7 days, please calibrate asap and be critical of very high or low values

Also tried a radio button and again no warning appears.

Thanks

0 Kudos
1 Solution

Accepted Solutions
JamesTedrick
Esri Esteemed Contributor

Hi Doug,

The bind::esri:warning field applies to geopoint questions only at this time.

View solution in original post

8 Replies
DougBrowning
MVP Notable Contributor

I cannot seem to get warnings to work for any field.  Has anyone got these to work?  How should they work?

I was hoping warning was like a constraint but they can move on if they need to.  In the past I have just been using Note fields for this but a warning would be much slicker.  The word Esri in the binding makes me wonder if this is for something else.  When I search on it I get so many hits I cannot find anything.

thanks

0 Kudos
JasonCyphers
Occasional Contributor III

I have a calibration date that must be within one year of the of the inspection date.  For the calibration date attribute, in the constraint cell, I have this - (today() - . < (1000*24*60*60*365)) with the constraint message being, "Odormeter Calibration Date is >1 Year.  Odormeter must be recalibrated before reading can be submitted."

0 Kudos
DougBrowning
MVP Notable Contributor

Yes a constraint works but a warning does nothing.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Doug,

The bind::esri:warning field applies to geopoint questions only at this time.

DougBrowning
MVP Notable Contributor

Thanks James i guess I am not crazy.  I vote for putting it on the list.  Thanks!

S_-_EvanRaskin__GISS_
New Contributor III

@DougBrowning, I have also needed soft constraints or warnings for non-geopoint questions. Since the bind::esri:warning field doesn't work in these instances, I created a workaround: follow the target question with a "note" type question containing the warning text that you want (I made the text red) and put your constraint logic in the "relevant" field for the note. If the constraint condition is met the note field will appear with your warning text.

0 Kudos
DougBrowning
MVP Notable Contributor

Yes I use notes a lot.  The crew really likes the little emojis also.  See here for how  https://community.esri.com/t5/arcgis-survey123-documents/how-to-simulate-instant-data-checking-using...

 

0 Kudos
S_-_EvanRaskin__GISS_
New Contributor III

Thanks! Looks like you have taken warnings to the next level. I'm sure that will come in handy.