From 53d392e2850768eed02105e93f9108409d637ec0 Mon Sep 17 00:00:00 2001 From: William Newman <3382274+newmanw@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:11:57 -0700 Subject: [PATCH] [service] form field mapping need to account for form name and field name to avoid conflicts --- plugins/arcgis/service/src/ObservationsTransformer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/arcgis/service/src/ObservationsTransformer.ts b/plugins/arcgis/service/src/ObservationsTransformer.ts index 49abf295b..529b5a0d4 100644 --- a/plugins/arcgis/service/src/ObservationsTransformer.ts +++ b/plugins/arcgis/service/src/ObservationsTransformer.ts @@ -328,7 +328,9 @@ export class ObservationsTransformer { if (fields != undefined) { const fieldTitle = fields.get(title) if (fieldTitle != undefined) { - title = fieldTitle + const sanitizedName = ObservationsTransformer.replaceSpaces(fieldTitle) + const sanitizedFormName = ObservationsTransformer.replaceSpaces(fields.name) + title = `${sanitizedFormName}_${sanitizedName}`.toLowerCase() } } if (field.type == FormFieldType.Geometry) {