If your survey is going to be used from a web browser, I suggest you look at the pulldata("@layer") function as described here: https://community.esri.com/t5/arcgis-survey123-blog/survey123-april-2022-now-available-in-beta/ba-p/...
This pulldata("@layer") function is currently documented in our Early Adopter website and ONLY works in the web application, but you can use Connect to author and publish your form. Keep in mind that Connect will not understand pulldata("@layer") so you need to get the syntax right in Connect and test in the app.
I suggest you download the latest version of Connect. If you cannot upgrade Connect, then make sure you add ?version=latest at the end of the web form URL to force the Survey123 web app to load the latest version.
The pulldata("@layer") function is planned to be officially released later in 2022, but we enabled it already for web applications since February 2022 as many people needed it to do similar things to what you are trying to do.