Hi,
In my Survey123 Connect Form, how do i access the submit/save event?
The Save event is available in WebApp Builder Smart Editor. We use it to verify values and alter values using condition statements. If uniqueID = null, assign max ID +1. Things like that. Basically scrubbing of the record so it plays nice when its imported back to the geodatabase.
However, we are looking to migrate to Survey123, as Web App Builder does not work offline.
So, back to my question, I am not sure how to access the Save Event in Survey123. Would i need to modify the application in AppStudio? If so, can someone direct me to where the save event is in the Survey123Template for AppStudio?
Hi @ScottLehto3
Before you go and modify the source code of the Survey123 field app, I suggest you look at ways to validate your form data using XLSForm expressions, or a custom JavaScript function. Survey123 smart forms can be configured to check input data. You can start here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformessentials.htm A simple expression in the XLSForm constraint column may be all you need.