Hello Philip,
Thank you for your response. Below are the answers to your questions.
I created a Bridge Inspection application that uses both Collector and Survey123. This is because Survey123 can only have one repeat level. In my design, I have bridges related to inspections and inspections have related elements. Therefore, my bridges are in Collector and the inspections and elements are in Survey123. To maintain the relationship between bridges to inspections I used the Collector URL to pass the bridge GlobalID to the bridge GUID in the inspection. James Tedrick helped me set this up. Here is the general process I used.
- Create database in a file geodatabase with relationship class of Global ID to GUID.
- Create ArcMap document with data layers and save as service in AGOL.
- Set service to allow editing and share to editing group.
- In Survey123 Connect, create new survey by importing service.
- In XLS Form add a text question that has a Null field type for holding the related Global ID.
- In XLS Form add a text question that has a GUID field type. For the question name, use the same name as the GUID in the service.
- For the GUID question, use the following calculation to remove the curly brackets from the Global ID. if(regex(${brdg_guid_txt}, '^\{[\w\-]*\}$'), substr(${brdg_guid_txt},1, string-length(${brdg_guid_txt}) - 1), ${brdg_guid_txt})
- In AGOL, create a web map with the related service to the one in Survey123. Use the following popup line. arcgis-survey123://?itemID=affe05ec8db8448daccb0688c9583ce8&field:brdg_guid_txt={GlobalID}
See the post below for the whole discussion I had with James on how I implemented the GUID in the survey.
https://community.esri.com/thread/208613-pass-global-id-from-collector-to-g?sr=inbox
The esrifieldtype of the question is GUID.
The GUID question does appear on the survey in the Inbox.