Allow JavaScript Functions to be run on the Thank You Screen after Survey is Submitted

851
1
11-10-2021 05:58 AM
kim77
by
New Contributor II

On a custom “thank you screen” defined in Survey123 Connect, it would be very helpful to have the ability to run JavaScript functions right after a survey is submitted. Currently, this is not possible, per this post here: https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-custom-thank-you-screen/m...

One example where this would be helpful – to provide the user with a URL that allows them to copy the survey they just submitted. A JavaScript function could be run right after submitting (on the thank you screen, in the “generated_note_prompt_submitted” line) in order to fetch the globalid value and create a copy link using Survey123 URL Parameters.

1 Comment
IsmaelChivite
Status changed to: Under Consideration

An alternative design for this requirement would be to allow text piping in the Thank You screen. Text piping allows you insert data from the form into the Thank You screen dialog. At this moment this is implemented already, but you cannot access the globalId. This is something we are considering.