We have a form built in Survey123 Connect with JavaScript that queries a map service and returns JSON. The JSON is parsed into several other fields. My question is, can we prevent the JSON field from being published? Currently the form is throwing an error because the JSON field isn't in the feature layer backing this survey. Frankly I don't want it to be. The only fields that should be in the hosted FL are those that are relevant to the ongoing data collection requirements. The JSON field is operational in nature and only exists as a staging ground for the JSON before it is parsed into other fields.
Does Survey123 have a data type or setting that allows us to not just visibly hide, but prevent a field from being published into the feature layer?
You can also configure a view on your hosted feature service. If you haven't seen it, check this out:
https://downloads.esri.com/RESOURCES/ENTERPRISEGIS/Limiting_Access_to_Public_Survey123_Results.pdf
This and other docs are available under the documents tab in the ArcGIS Trust Center.
Yes. you need to set the column [bind::esri:fieldType] as null so it will not publish with the survey in to the HFL.
Regards,