Select to view content in your preferred language

How to make sure GlobalID is applied for survey in ExB

841
8
Jump to solution
10-09-2024 01:59 AM
EdHixson
Frequent Contributor

Hi here

 

I am working with a large survey123 form (3000 lines or so) and I am looking to embedd it within an Experience Builder application I am working on. I want my users to be able to open forms and edit them within the survey rather than just always creating a brand new survey. But when I select this it provide the error below.

I might be missing something really obvious but if anyone knows how to fix this it would be great

 

ATB

-Ed

EdHixson_0-1728464222827.png

 

0 Kudos
1 Solution

Accepted Solutions
EdHixson
Frequent Contributor

Location data such as the polygon was exposed, once this was exposed it fixed the issue as it was able to localed a GUID

View solution in original post

8 Replies
KellyDoss1
Emerging Contributor

Hi Ed,

Where are you getting that error? In the Survey123 form? If so, is there a globalId parameter in the URL? (ex. '...?globalId=64830edf-9009-4ba3-82a3-0d9ea42de66b&mode=edit')

In order to view/edit an existing record, the globalId of the record needs to be passed to the survey using a URL parameter.

EdHixson
Frequent Contributor

See below 🙂

 

0 Kudos
abureaux
MVP Frequent Contributor

As the error says, GID was not provided. Either the survey wasn't set up properly in EB, or your permissions are wrong. Double check both these items.

Where are you seeing the error though? In development, or in the deployed app.

Regarding survey set-up, it should be pretty straight forward (Example below). In this case, simply selecting an item passes along the GID because "Edit an existing record" is selected. Everything else is automated.

abureaux_0-1728508271297.png

Also check that the account accessing the EB site has permission for the survey as well.

EdHixson
Frequent Contributor

See below 🙂

0 Kudos
EdHixson
Frequent Contributor

Hi both

 

I am going to respond to both of you at the same time.

 

I am getting that error when the survey in embedded within the ExperienceBuilder App. I am a creator so have full rights to both the survey and app. The error appears in both the edit and published

EdHixson_0-1728549416130.png

 

and for Kelly where would I do this if that is the answer, within connect or in the map view of the table feature services in AGOL?

Thanks both

-Ed

0 Kudos
abureaux
MVP Frequent Contributor

How is the survey set up in EB? If it is like my screen shot, and set to "Edit an existing record", then the GID is automatically added when you click on a feature in the web map.

Are you sure that the survey being used and the data displayed no the web map are the same? The data displayed on the web map should be the same data the survey is built on top of.

0 Kudos
EdHixson
Frequent Contributor

Hi there

Yes the survey is set up the same way and it is when the "edit an existing record" is chosen that the error screenshot appears. I have been investigating further and this seems like I may be due to data not appearing in the map which is being caused by another issue. Once I hav got this resolve I will come back to this thread to discuss further

0 Kudos
EdHixson
Frequent Contributor

Location data such as the polygon was exposed, once this was exposed it fixed the issue as it was able to localed a GUID