I created a survey as a related table to an existing point feature class and am using Collector and custom URLs to populate fields within the survey. However, now the department using the survey would like a couple new questions added so that they can track which surveys they have audited for data accuracy & training purposes. Is it possible to add new fields to the existing feature service? Would I use the admin page and 'Update Definition' to modify the JSON to add the new fields so I can add the new questions to the survey?
I used this process to create the survey: https://community.esri.com/thread/230438-how-do-i-make-my-survey123-survey-a-related-table-to-a-feature-class
Hi. You can add new fields to your hosted feature layers as described here: Add or delete a field—ArcGIS Online Help | ArcGIS If the feature service was published from ArcGIS Pro or ArcMap, I am not entirely clear how you can safely add a new field without losing your data. I suggest you ask in the ArcGIS Online and/or Enterprise GeoNet places in case you do not get ideas from this forum.
Once the field has been added, you can manually add the corresponding Survey123 question in your XLSForm. For more info on how to map XLSForm questions to ArcGIS fields, see: https://community.esri.com/groups/survey123/blog/2015/08/24/xlsform-mappings-to-arcgis-feature-services-an-introduction
Hi Ismael,
Thanks for the response! Unfortunately, the options for adding a field are not available (I did publish the service from Pro). Before the Survey went 'live', I was able to add & modify fields, but now that option is no longer available to me. However, I was able to successfully edit some field alias names using the 'Update Definition' and editing the JSON, but I was not certain if this process could also be used to add a new field. (using this as a guide: https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf?rmedium=bulk-arcgis-files&rsource=https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf )
Thanks!Melissa
It does not matter where you published. You MUST add the field(s) in ArcGIS online, and make sure the added schema details match the questions you are adding to the survey in Pro or S123.
Thanks Mikaila! I'm stuck on how to add the field in AGO. I'm guessing (and maybe I'm wrong in this) that the Survey "_Stakeholder" Feature Layer that is associated with my Feature Service is preventing me from being able to add a new field to my FS in AGO?? Normally adding a new field in AGO is pretty straightforward, go to the Data view, Fields, and there's an option to Add a New field, change domains etc. However, those options are not available anymore and I'm not sure how to go about adding a new field without these options. I even tried adding a new field to the FS in Pro, but received an error that the FS was in use. Thank you! Melissa
Melissa Wojciuk At this time, I think the best is that you open an incident with Esri Tech Support so they can help you do this safely. It is not possible to add fields to a Hosted Layer View, but you should be able to add them to the source Feature Layer. Once added into the Feature Layer you will need to edit the fields in the Layer View (through the visualization tab). An Esri Tech Support Analyst should be able to help you through the process.
Hi Melissa, did you ever figure out the issue or a work around? I am having the same issue.
I am also having this issue. I have a hosted feature layer that I have a survey writing to, and I am unable to add a new field to it. I can add fields to other hosted feature layers, but not this one.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.