Select to view content in your preferred language

Using Survey123 Connect to remove geolocator box and change basemaps.

225
5
02-07-2025 08:47 AM
Crinoid
Occasional Contributor

I've been designing a survey in Survey123 Connect that compares where people think they live (jurisdiction etc.) with where they actually live. In rural areas, people often live outside of the city that's listed on their mailing address. One question involves respondents placing a point on a map to show where they live. I need the map question to have no external information beyond aerial imagery so that it doesn't affect their responses on later questions. 

How can I use Survey123 Connect to remove all the Esri basemaps beyond the one map I have linked to the survey? And how can I remove the locator box? (Alternatively, we have an organization geolocator that we could use, but it's in Portal and I couldn't get the map to connect to it).

Thank you!

Screenshot 2025-02-07 093331.png

0 Kudos
5 Replies
ZacharySutherby
Esri Regular Contributor

Hello @Crinoid

You can use the mapTools parameter in the body::esri:style column of your XLSForm to disable search and mapSwitcher. 

What you can set is mapTools=zoom,home,locate and this will omit the search box and the ability to switch the basemap and only use the default map you have configured with the question. 

Thank you,
Zach
Crinoid
Occasional Contributor
It makes me really happy to know that this might be possible! However, my map doesn't respond to anything I put in the "body::esri:style" column. If I change my question phrasing in "label" or delete my bad geocoder link from "bind::esri:parameters," those changes appear in the survey just fine. I fiddled with a bunch of combinations of "mapTools," "map," and "height" parameters, but nothing changes the map. Even if I delete my map item's ID it still shows the map on the published survey. Am I doing something wrong?
My desired parameters would be something like this:
mapTools=zoom,home map=4f565696482044c89e717e8bf1bb5cdf
Thank you!
0 Kudos
Crinoid
Occasional Contributor

To follow up, I tried creating a blank survey with a map question and set body::esri:style to be "mapTools=zoom,home". When I then click the map icon in Survey123 Connect, it shows a nice map with the zoom and home buttons. However, the actual published survey shows the full suite of tools still.The map in Survey123 ConnectThe map in Survey123 ConnectThe map on the published web surveyThe map on the published web survey

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @Crinoid

Apologies for the delay in response, also apologies I saw your post and was excited that we had the functionality you are looking for but failed to double check if it was supported in the web app. 

Unfortunately at this time the mapTools parameter is not supported in the Survey123 web app. With that though as it happens support for the mapTools parameter is planned to be introduced in the web app with our 3.22 release next week.  

You can test this on your end if you navigate to https://survey123beta.arcgis.com/?portalUrl=https://www.arcgis.com and open your survey in the beta Survey123 web app. It's not recommended to use the survey123beta website for production use but when 3.22 is released if your survey is set to "Always use the latest version" in the surveys settings the feature will be automatically picked up.  

Thank you,
Zach
0 Kudos
Crinoid
Occasional Contributor
Thank you! I'm not on a tight deadline so I'll hang tight till next week and hopefully I can get it working then.
0 Kudos