Populate Survey123 Form via Field Maps (App, not web)

467
7
Jump to solution
05-04-2021 03:06 PM
elpinguino
New Contributor III

Hi S123 Community,

I've posted this in the Field Maps boards, but no reply. Wasn't sure if someone here might know how to help me. Sorry in advance for the double up.

What is the best way to pre-populate a Survey123 form link (which would be opened up via a polygon pop-up in Field Maps) in a TABLET? I want to carry over the GUID from the polygon to the Survey123 form to be filled out in a TABLET. I've found you can do this through the form widget in Experience Builder, but the team is out in the field half the time and needs to be able to do this not in a web browser/offline.

0 Kudos
1 Solution

Accepted Solutions
sofoo
by
New Contributor III

@Kevin_McIntyre  That's it!  Same url schema as in Collector:

arcgis-survey123://?itemID=ItemIDSurveyForm&field:FieldNameInSurvey123={FieldNameInFieldMaps}

Italicized portions should be replaced with your item/feature class specific values.

View solution in original post

7 Replies
Kevin_McIntyre
New Contributor III

Is this what you're looking for? 

You can link to Survey123 with other apps and you should be able to carry over attributes from a feature in one app to populate survey questions in survey123. The caveat is that I'm not sure if this functionality has been added to Field Maps yet. 

Also, Field Maps does have smart form capabilities now for related tables/inspection forms which can be pretty similar Survey 123 forms if you wanted to go that route. 

sofoo
by
New Contributor III

@Kevin_McIntyre  That's it!  Same url schema as in Collector:

arcgis-survey123://?itemID=ItemIDSurveyForm&field:FieldNameInSurvey123={FieldNameInFieldMaps}

Italicized portions should be replaced with your item/feature class specific values.

View solution in original post

elpinguino
New Contributor III

Thanks both @sofoo and @Kevin_McIntyre . That worked! Sofoo, the way you explained it really helped. I'd already read a bunch of post/articles, but it hadn't been as clear to me as the way you laid it out.

I have another easy win for you guys. Now that I've added in the link as text in the pop-up, I notice only the link is appearing in Field Map mobile. All the other fields in the pop-up have disappeared... And then, when I remove the text (which contains the link) in Field Map web/desktop, all the fields appear again in the mobile version. Field Maps on web/desktop looks perfectly normal, but it's bugging out on mobile. Both are online. Haven't moved over to offline yet. Yes, I'm saving in Map Viewer. I'll try starting from scratch and creating a new map/adding the layers, but if you know of another solution, I'd be keen to hear.

0 Kudos
sofoo
by
New Contributor III

That's great, you figured out the text option!  I noticed the same behavior as you too.  One way to access the rest of the fields is to add the field to the text input by using curly braces:

sofoo_1-1620228200705.png

 

0 Kudos
elpinguino
New Contributor III

That's cool. Good work around... I like the nice table format from the fields list though.

Is this a known bug that when you add a link in a Text content, all the other contents you've added (ie Fields list) disappear?

0 Kudos
sofoo
by
New Contributor III

Not sure if it is by design or if it is a bug?

0 Kudos
elpinguino
New Contributor III

Hi again guys, I got the passing of attributes in Field Maps mobile to Survey123 to work a few weeks ago. I've since published a new (different, not overwrite) feature service, and I'm running in to issues again.

1) I can click on the polygon in Field Maps and it'll open up S123, but then it stops at the S123 home screen and doesn't go into the specific survey I want it to go into. How do I direct it to do that? There are 3 other surveys it could pick from in the feature service. Should I be adding in the sublayers into the URL or should I load each of these feature layers individually, not as a service?

2) I'm getting an unpacking error sometimes when Field Maps opens up S123. I have gone in to the folders/ My Surveys and deleted any existing ones. It seems ok now, but it still doesn't solve issue number 1.

I've taken a screenshot to help explain. 

0 Kudos