FIELD MAPS AUTO FILL BASED ON LOGIN

1286
5
Jump to solution
07-14-2022 08:51 AM
kloraine
New Contributor II

How can you get Field Maps to AutoFill a Field Attribute based on the user that is logged in? We have crews working out in the field and we want to autofill who entered the field data based off of the login. 

 

Example: Crew 1 logging in would AutoFill an attribute Field to "Sean" and Crew 2 would AutoFill "Larry" etc. 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RodellZorilla
Occasional Contributor

Calculated expression may be a useful lead: https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/common-calculated-expressions-fo...

Looks like you can auto-calculate a value, here "name," based on the user account logged in. See #3 in the link above.

View solution in original post

5 Replies
RodellZorilla
Occasional Contributor

Calculated expression may be a useful lead: https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/common-calculated-expressions-fo...

Looks like you can auto-calculate a value, here "name," based on the user account logged in. See #3 in the link above.

kloraine
New Contributor II

This looks as though what we are looking for, I will test and see. 

 

0 Kudos
RhettZufelt
MVP Frequent Contributor

Enable creator/editor tracking on the feature layer and it does it automatically for you:

RhettZufelt_0-1657824272972.png

 

R_

 

0 Kudos
kloraine
New Contributor II

This does not work because anytime we edit the database and edit that point for any reason it changes the last edited user, we are trying to auto calculate a name based on who logged in and edited that point from field maps. 

0 Kudos
RhettZufelt
MVP Frequent Contributor

You could enable the editor tracking, then have a calculated field that sets your "name" attribute to $feature.Editor, which should also work in offline mode.

This way, the created/edited info is in there if needed, but, only the FM form with the calculated value would populate the "name" field.

R_

 

0 Kudos