I'm trying to author a Field Maps form calculation expression that will:
- execute only when a new feature is first created
- populate a GUID field (INF_GUID) with a new GUID value
Seems straightforward, but doesn't currently work for me on device. The IIf statement below is what is being used as the expression in the form calculation:
//if it's an insert, generate a new GUID value into field INF_GUID
//otherwise use existing value in field
IIf($editcontext.editType == 'INSERT', Guid(), $feature.INF_GUID)
Tested using Field Maps 22.3.1 (both iOS and Android), any assistance would be greatly appreciated!