Select to view content in your preferred language

allow users to enter data in a Calculated Expression (it is currently hard-coded as designed)

134
0
03-13-2024 09:51 AM
Status: Open
Labels (2)
Kevin_MacLeod
New Contributor III

Field Maps Designer is wonderful. Calculated Expressions are also fantastic. Literally what we have always needed in the field, to save time and pre-populate fields from other fields, etc.

 

However I noticed one significant design improvement for Field Maps Designer and for Smart Forms, which I think applies to the main Map Viewer and any other Esri products with Smart Forms as well.

 

Let's say we have a Date_Inspected field.  We want to save users time and we put the following Calculated Expression on the field:

Now()

Works great, it sets the current time and date. 

One catch. And it's a big one.  Users can't adjust this field to enter a different date. It is hard-coded to calculate "Now()" for the current date. What if a user's phone battery died or they were offline and they got back to the office late. So the following day, they want to enter in inspections. Well, it's going to have the wrong date, it will be today, not yesterday.  

Solution:  allow users to override a Calculated Expression with their own attribute values input.

Now, Tech Support pointed out, this may or may not be the desired behavior. Thus, a simple solution. An option checkbox toggle, to allow users to manually override a Calculated Expression or not to allow it, on a per-field basis in the Smart Form Designer / Field Maps Designer.

Tags (2)