Add Choice to Ranking through API or other

444
3
Jump to solution
07-05-2022 09:58 AM
MatthewMuehlhauser2
New Contributor II

I'm working on a project where I'm creating a simple Survey which is basically just a ranking question. The trick though, is that the choices in the Ranking question are based on a hosted feature layer which is being updated by users.

As users add new features to the hosted feature layer, I would like to automatically update the survey to include the new choices and possibly even remove choices if a feature is deleted.

I've been looking around the Survey123 REST and API documentation for both Javascript and Python, but can't seem to find anything about updating the survey and so I don't think this is currently possible, however; I was hoping maybe someone out there had some ideas.

0 Kudos
1 Solution

Accepted Solutions
ZacharySutherby
Esri Regular Contributor

Hello @MatthewMuehlhauser2

This can be accomplished using the search() appearance, unfortunately if you plan on using the web app the search() appearance on a rank question does not work correctly. 

 

Please see these resources for more information on the search() appearance: 

https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-...

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A7...

I've also attached an example that demonstrates how it can be done using a Living Atlas service. 

Thank you,
Zach

View solution in original post

0 Kudos
3 Replies
ZacharySutherby
Esri Regular Contributor

Hello @MatthewMuehlhauser2

This can be accomplished using the search() appearance, unfortunately if you plan on using the web app the search() appearance on a rank question does not work correctly. 

 

Please see these resources for more information on the search() appearance: 

https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-...

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A7...

I've also attached an example that demonstrates how it can be done using a Living Atlas service. 

Thank you,
Zach
0 Kudos
MatthewMuehlhauser2
New Contributor II

Thanks @ZacharySutherby ,

After trying it out, it seems to do exactly what I want. Do you know if there's an ETA on when that feature might come to the web app version? Unfortunately, that's the version I'm using ...

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @MatthewMuehlhauser2

Unfortunately we don't have a timeline on web app implementation, please feel free to reach out to Esri Technical Support to request an official Enhancement and that can be used to track progress on the feature request. 

Thank you,
Zach
0 Kudos