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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.