Select to view content in your preferred language

How to include GlobalID in form from Survey123 Connect

3516
7
07-19-2022 01:18 PM
elpinguino
Frequent Contributor

Hi S123 Community,

I want to embed a survey123 form in a dashboard so it can be edited. From what I've read my understanding is, I need to provide the GlobalID which I assume means making it viewable in the s123 form.

I created this form in connect and will need to add in the GlobalID, which is called GlobalID and republish it. GlobalID is a reserve word though, so I can't save the spreadsheet. Are there any work arounds for this? We've been using this form for a while now. There are a lot of records, so going back to the start and creating a new/ renaming the GlobalID field to something else isn't really an option.

Thanks in advance for your help.

Tags (2)
0 Kudos
7 Replies
Kassa
by
New Contributor

If you made the form in Connect it should already have globalID for all records? I'm curious which example youre following

elpinguino
Frequent Contributor

@Kassa Yes, it does have globalIDs. I'm trying to expose it in the form so I can use it as an embed widget in Experience Builder. The survey widget > edit option doesn't seem to be working for me. Going back a few steps, what I am trying to achieve is edit a related table. 

I create the original record by clicking on a polygon in the map, this then triggers the survey widget to carry over attributes. The problem is users are making typos and needing to update what they've filled out, so I thought I could try this method. Open to other suggestions though. There's likely a better way to do this.

If it turns out it won't work because the record is related and not a spatial feature on the map, I trigger the edit form by click on a list of the existing records.

This is the article I'm following. https://support.esri.com/en/technical-article/000021897

This is the error I'm receiving and why I want to try and expose the globalid in the Survey123Connect. I'm still fairly new to Survey123Connect, so I could be missing something obvious here.

elpinguino_0-1658266026204.png

 

0 Kudos
Richard_Purkis
Esri Contributor

@elpinguino I've had issues with this in the past. When you are referencing the Globlal ID field using the command similar to:

https://survey123.arcgis.com/share/<survey_form_ID>?mode=edit&globalId={GlobalID}&version=latest

You need to be careful as the field referenced in the curly brackets is case sensitive. Check the Fields infomration in ArcGIS Online

globalid.png

 

 

 

If it is like the image above, the url string needs to be edited as follows

https://survey123.arcgis.com/share/<survey_form_ID>?mode=edit&globalId={globalid}&version=latest

 

Hope this helps

0 Kudos
elpinguino
Frequent Contributor

Hi @Richard_Purkis , Thank you for your help. That did get me a little further.

  • I re-checked the casing for GlobalID in brackets in my original feature service. Updated this.
  • I also came across this thread, which directed me to check my settings in Survey123 web. I had published this survey so long ago that I was using the original S123 version. I've updated this now to always use the latest.
  • I have my survey settings so users can add and update records. I did a quick test to see if I enabled deleting too if that would fix the issue it didn't. Some more context. This layer sits within a feature service. I'd prefer to keep it so users can't delete because there are other layers in the feature service that have data we don't want them accidently deleting.
  • I'm getting this error now though...
  • elpinguino_2-1658525995582.png
0 Kudos
JasminePrater
Frequent Contributor

Did you ever figure out what is causing this issue?  I'm having it now and I made sure the capitalization was correct.

0 Kudos
DavidForbuss1
Frequent Contributor

I didn't know embedding surveys was an option in dashboards.  Looks pretty cool...I'm going to try it.  Is your form writing to an existing service?  

https://support.esri.com/en/technical-article/000021897

 

 

0 Kudos
elpinguino
Frequent Contributor

@DavidForbuss1 Yes, it writes to an existing service.

0 Kudos