Creating a package does not copy the value of the choice fields; it records the generic "choice1, choice2, choice3, ..." not my values or labels attached to the 'choice(s)'.
Hi David. There is info about downloading Survey123 data in the https://community.esri.com/groups/survey123/blog/2015/11/10/downloading-data-captured-with-survey123-for-arcgis blog post. The reason why you see choice1, choice 2 etc is because these are the actual geodatabase domain values that get persisted when surveys are authored from the Web Designer. In the Web Designer, the labels you give to the choices in choice-lists are used to define the geodatabase coded value domain descriptions, but the actual geodatabase coded value domain values are automatically created with the convention choice0, choice1 etc
If you would like to have full control over the geodatabase coded value domain you will want to download your survey to Survey123 Connect for ArcGIS and define the coded value domain values in the XLSForm. This video describes how to create choice lists using XLSForms in Survey123 Connect for ArcGIS. Note that the Label column is used for the Descriptions, and the Name column for the actual values.
You are wonderful. Many thanks. I did copy the file, exported as a shape file and as a package. I eventually decided that I had to use Connect - but when I tried to change the actual geodatabase domain values in Connect, it gave me gave me an error. But I will try again knowing I am on the right track.
I saw my Web Designer version in Survey123 Connect, so I presume I can edit the Connect version (and save as a new survey)? Rather than recreating the whole anew?
Hi. Once you download the survey you authored with Web Designer into Connect, you can either overwrite the survey or create a separate using the previous as a starting point. When changing the values keep in mind the following:
Note that once you publish a survey from Survey123 Connect you can no longer use the survey to submit data from a web browser. Support for Survey123 Connect surveys from the web-based app is planned for version 2.1, which should be coming around May or so. At the moment, you can actually get your Connect surveys in the web, but only through technology that is in Beta. For details on this, you can check the Web Forms section in this blog post: https://community.esri.com/groups/survey123/blog/2017/02/24/survey123-for-arcgis-v-20-beta-available
I am so grateful.
The rub is in your first para. I cannot take that work. All the rest I was aware of - I had read your GeoNet. Thanks.
In Connect, I opened my most-recent web designer version. I opened the Excel version, saved to a new name. Edited one database field name (column 2). Saved . I then get the error message “Error converting XLSForm There has been a problem trying to replace $ with the Path to the survey element ‘field0’. …”
Clearly I am trying to edit the old version and I have not established a brand new and therefore unpublished and editable version. Why will it not me overwrite?
Re your 2. I do want to change the geodatabase field names (from the ‘field_0’ to my meaningful “Sitecode”). I have not knowingly made any further reference to be altered.
How do I overwrite or create a separate? The later seems a better option given the old works and has data attached.
Regards
D
To clone your Web Designer survey: In the Survey Gallery in Connect, click on the small menu button in the lower-right corner of your survey and select: Create a new survey.
To overwrite your Web Designer survey: Open the survey preview and hit Publish
Given that you plan on changing field names, I recommend that you create a new survey.
By the way, I noticed you added your thread to the Developers Group. For future Survey123 specific questions you may want to post into the Survey123 for ArcGIS Group. You will get more visibility.
I cannot make the cloned version work. In Excel, I alter one field name, save - and I get the same error message.
Can you attach the XLSForm to this thread so I can have a look?
Thank you, that is generous.
I think I have done the right things.
In Survey123 Connect (Mac)
My Survey Designs - On the Survey-project CameraTrap 6, create a new survey.
Create new survey from Camera Trap 3 copy - the last functioning survey-project. Give the clone a title.
New Survey-project icon displayed. Double Click
Form Preview displayed.
Click on spreadsheet icon - Open XLSForm spreadsheet.
Change the field names in column B , the GDB fields, from the generic “field_0, …. to properly formed 10-20 ch meaningful names.
Do not save exl spreadsheet but do click the Update survey XLSForm. Apparently updates.
Add a second picture field - image. Updates.
Have a look at Schema Preview. This does not match the revised XLSForm! Why not?
Form Preview does not match the revised XLS Form. No second image field.
I tried to publish but there Token error - more or less as expected because I had earlier got the error message previously reported.
Attached
- two error messages;
- My XLSForm, as requested
- my desktop
Thank you. I found the Web Designer a treat- that worked quickly and easily. The need to have my own copy drove me to try and backup. That exposed the difference between the Survey123-generated field names and list choices verses my labels. That forced me to try Connect to fix this issue and to give me access to a smarter form.
I think the only changes I made to last working version CameraTrap 3 copy and CameraTrap 6 is the change to the DB fields and the addition of a second image-photo field.
I am really grateful for your willingness to help.
David
Hi,
attaching XLSForm with some changes.
You were getting an error because some expressions in the relevant column were till referencing the old field names.
I changed the type of question for Date Now from datetime to date. The reason is that if you plan to also add a separate question for the time it does not make sense to ask twice for the time. You could alternatively put the question type back to datetime and then remove the next time question. If you choose to go with a datetime question I suggest you set the value of the default column to now() rather than today(), because otherwise the datetime widget gets initialized to todays date at the beginning of the day, rather than the current date and time.
You may want to use the spinner appearance for your decimal questions. You can also use the multiline appearance in text questions where you want people to add lengthy descriptions.
In general, when working with Survey123 Connect you will want to always save changes in Microsoft Excel. This will ensure that the Preview is up to date. When you save the Excel file, Connect will attempt to update the preview immediately.
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.