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
Solved! Go to Solution.
Hi Doug,
The bind::esri:warning field applies to geopoint questions only at this time.
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
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."
Yes a constraint works but a warning does nothing.
Hi Doug,
The bind::esri:warning field applies to geopoint questions only at this time.
Thanks James i guess I am not crazy. I vote for putting it on the list. Thanks!
Hi @JamesTedrick , Is it working now for other questions or still only for geopoint ?
I can't seem to figure out how to get the bind::esri::warning field to work on a geopoint question. I have a constraint set up right now that works fine, however, I want the user to be allowed to submit the survey even if the warning pops up. When I put the same calculation from my constraint column to the warning column, nothing shows up in my survey. Should I be putting in something differently in the warning column?
Any help would be great - thank you!
@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.
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...