Enterprise survey123: how to close the survey window once the user submits the survey?

271
1
07-22-2021 10:58 AM
JuneAcosta
Occasional Contributor III

In Enterprise,  I have added a link to a Survey123 form(web) on the splash page. Once clicked, the survey form opens in a new window where users are asked several questions.

Is there a way to close the survey window once the user clicks the submit button? I would like the window to  close so the the user is redirected back to the webapp.

Thanks ahead for all suggestions...

0 Kudos
1 Reply
ZacharySutherby
Esri Regular Contributor

Hello @JuneAcosta

Using the Survey123 Web App JavaScript API there is a setOnFormSubmitter event that can be used in conjunction with a custom function that will close the window. 

Please use this link for more information on the Survey123 Web App JavaScript API: https://developers.arcgis.com/survey123/api-reference/web-app/#setOnFormSubmitter

Thank you, 

Zach

Thank you,
Zach
0 Kudos