Select to view content in your preferred language

"Exposing" a GlobalID in Experience Builder to pass it to a Survey123 Form

272
2
07-28-2025 12:00 PM
Labels (1)
ChristineTombleson1
Frequent Contributor

Hello - I have an Experience Builder project where a user inputs information about shoreline conditions (Coastal protection structures, cultural, buffers, phragmites, land use, etc.). The hosted feature layer has a Name and Email group with repeats for each of the shoreline features (Coastal, Cultural, Buffers, Phrag, etc.).  The user clicks on a button widget to open up a survey123 form to be able to input Name and Email Address (URL: https://survey123.arcgis.com/share/d256d0da500a49eea7b38c9462e070f4?callback=https%3A%2F%2Fexperienc...).  This process creates a GlobalID in the hosted feature layer. 

I want that Global ID from the NameandEmailGroup (parent record) to be passed into the repeats in the hosted feature layer to be used as the ParentGlobalID (GUID) value in the child records.  I have a hidden record in my XLS forms for my Repeat surveys (coastal, Cultural, buffers, etc.) called Parent GlobalID with a Guid field type. ParentGlobalID exists in the hosted feature class. 

I created a List Widget (with data connected to the hosted feature layer) to "expose" the Global ID of parent NameandEmail record in Experience Builder. After submitting the NameandEmail survey, the user selects the record in the List Widget. 

After entering the name and email in one survey, selecting the entry in the list widget, and then opening a button widget to access one of the repeat forms, ie. Coastal Protection Structures (connected to data: view layer of the Coastal sublayer of my hosted feature layer - I have also used the hosted feature layer), the information inputted into the Survey123 populates into my hosted feature layer, BUT the ParentGlobalID is blank.  This is the URL link to coastal feature survey to pass the GlobalID and to have the user return back to Experience Builder after submitting the survey: https://survey123.arcgis.com/share/e358b2bcef2841a3b1a0e7c0114b93eb?field:ParentGlobalID={GlobalID:r... am I doing wrong? How can I get the Global ID from my Name and Email parent group to populate the ParentGlobalID (Guid) field in the the repeat groups to connect the inputted features to the Name and Email of the inputter?   Thank you in advance for any assistance!  

0 Kudos
2 Replies
ConorFlynn
Regular Contributor

Hello, this is a little bit complicated so sorry if I don't understand your complete workflow.  The simple way to have a GlobalID and ParentGlobalID is to create both in Survey123.  So opening your S123 form would create the parent record and the nested child records.  

0 Kudos
ChristineTombleson1
Frequent Contributor

Hi - Thank you for responding.  The GlobalId and the ParentGlobalID are in my Survey123.  However, The Global ID is not passing to my related surveys to become the PArentGlobalID in my hosted feature layer.  In researching this, I have read I need to "expose" the Global ID in Experience Builder for this to work. My overall tool is Experience Builder that has button widgets to open the main survey where they fill in their name and email which generates a Global ID. This survey submits and I get a thank you screen. They are directed back to Experience Builder. and then the user can select the appropriate button widget that corresponds with the feature they want to create (Coastal, Cultural, Buffer, Phrag, etc.) My buttons open the surveys open, a user can create the feature and answer the questions, but the GlobalParentID of the related features is blank in the hosted feature layer that all of these surveys populate. Since Survey123 web does not support nested repeats, I had to break up the main survey into separate surveys that populate the hosted feature layer.  Getting these surveys connected is my issue.  They populate the hosted feature layer but not with the parentglobalId to tie them back to the Parent Name and Email. The Global ID does populate, but no ParentGlobalIds.        

0 Kudos