Hello! I recently added the sameAsLast js function used in this post to my vegetation repeat in a survey. This survey is linked in fieldmaps along with 8 others to pull the EventName along with other various fields using custom URLs. Before adding the function everything worked as expected, but now when the two field parameters (EventName and eventType) are used for this survey, s123 stays stuck on the loading survey screen. When I remove both field parameters, the link to open a blank version of the survey works like normal. All of my other links with field parameters for the other surveys work as expected, and the only difference I have been able to figure is the function. Has anyone experienced this? I've tried removing each of the field parameters, neither worked. I've looked through the two posts below and worked through the solutions in the comments, no luck.
Solved: Field App to Survey123 Url Scheme stopped working ... - Esri Community
Solved: Survey123 hangs on Loading Survey screen when open... - Esri Community
Attached is the XLS form and functions.js and below is the custom url
Thanks in advance!