|
POST
|
If you are using a point to create a survey point within polygon areas, and what you want to get is the overlapping polygon's name, you can use pulldata @javascript. There are sample codes in the Sruvey123 connector. Cheers, Kerry
... View more
04-25-2021
11:31 AM
|
1
|
0
|
1024
|
|
POST
|
Hi Julian, To me, it sounds like Arcade was applied within a web map or dashboard to replace '_' to ' '. I will be interested in finding a solution if there is a way to do it within Survey123 directly. Cheers, Kerry
... View more
04-24-2021
04:44 PM
|
0
|
0
|
1500
|
|
POST
|
I have not tried this, but it sounds like the survey on webform can be saved? Hope it hleps. Cheers, Kerry Draft mode If enabled in the Share survey section, the Draft mode option saves a user's answers in the Survey123 web app locally as they progress through the survey. The user can resume the survey in the same browser at any time. https://doc.arcgis.com/en/survey123/browser/create-surveys/sharesurvey.htm
... View more
04-24-2021
12:16 PM
|
1
|
0
|
1033
|
|
POST
|
Hello Esri Survey123 team, @JamesTedrick , @Anonymous User or @IsmaelChivite could you please help me,,,? I am creating a web form that will use the pulldata function to retrieve the attributes from another feature layer. This is how I'd like to set up. - Survey1 is used to create a project list and its detail information such as year, client, and team members. - Survey2 is used to track hours per each project created in Survey1. I hope to use 'dynamic dropdown' for the project list but I am aware that it's not implemented yet. So the project list is coming from another CSV table hosted on AGOL. - In Survey2, when user select a project name, the project name will be used to query the attributes in Survey1 feature layer, and pullout its relevant information. This will be done using pulldata javascript as it will access the feature layer directly which will be consistently updated by managers rather than using pulldata csv. To do that, I created a JavaScript functions that query the record with 'where clause' only (not using x, y location), and I am supposed to get the attributes in json. It worked perfect when I tested in Connect and Survey123 app on mobile device, but in web form I can confirm that json result area is empty where I used pulldata @javascript, and therefore pulldata@json questions that I am using to get each attribute value are empty, too. When I tested using with 'featureByLocation' from the sample form, it worked fine on the web form. So I am not sure why my function does not work on web form, assuming that something must be wrong with my code. I used something that may not recognized by web browser?? The images below show the reusult of my javascript request in the mobile app vs. web browser. pulldata("@javascript", "getProjectDetail.js", "featureByAttribute", ${Project_Name}, ${Token})) Result in the mobile app Result in the web form (empty) This is what I did for scripting,.. sorry for poor coding. I hope to get some advice. function featureByAttribute(projectName, token) { // Output value. Initially set to an empty string (XLSForm null) let outValue = ""; // Check to make sure both layerURL and location are provided if (projectName == null || projectName == "") { // The function can't go forward; exit with the empty value return projectName; } // I used these variables to replace '=' and ''' in url let newEqual = "%3D" let sgQuote = "%27" // Set up query parameters let parameter1 = "where=Project_Name" let parameter2 = [parameter1, newEqual,sgQuote,projectName,sgQuote].join('') let parameter3 = "f=pjson&outFields=*&returnGeometry=false" let parameters = [parameter2, parameter3].join("&"); let layerURL = 'https://services1.arcgis.com/..../FeatureServer/0' if (token) { parameters = parameters + `&token=${token}`; } let url = `${layerURL}/query?${parameters}`;
... View more
04-23-2021
09:35 PM
|
3
|
3
|
3082
|
|
POST
|
Hi Jose, You can get the feature layer url on the layer's overview page. At the bottom right, there is a url you can copy. Kerry
... View more
04-23-2021
08:54 AM
|
0
|
0
|
3959
|
|
POST
|
You can extract token in the survey form. Use this in calculation..maybe set the type as hidden and esri type null. pulldata(‘@property’,’token’) kerry
... View more
04-22-2021
11:02 PM
|
1
|
0
|
3972
|
|
POST
|
Hello all, I am quite new to JavaScript and ArcGIS REST API and looking for some help on creating JavaScript that works for querying attribute with feature services. I hope to pull out relevant information through hosted feature layer instead of CSV pull data function. I tried the sample with intersect with geometry, but I'd like to achieve this by using attribute values. For example, there is a store database which has store names, address, operating hours and type of store. Once I select store name from the dropdown in the survey, store address, hours, type in the feature layer would be entered automatically. Kerry
... View more
04-19-2021
04:25 PM
|
0
|
1
|
1839
|
|
POST
|
Hi @ZacharySutherby I reposted the question last week and I was advised to try with v3.12 mobile apps. It works fine while I have the csv downloaded in the media folder (even if it's not the latest one). But once I remove the csv from the media folder, I don't see new list from the update csv. This is what I tried today. 1. Removed csv in the media folder. 2. Updated CSV on AGOL (let's say A.csv) 3. Refreshed Survey123 mobile app, there is no notification on csv update. 4. Re-published Survey123 through Suvey123 Connect. 5. Refreshed Survey123 mobile app, there is no notification on csv update. 6. Downloaded A.csv linked content . 7. Refreshed Survey123 mobile app, it asks to update. I could see the list from A.csv. 8. Updated A.csv to B.csv on AGOL 9. Refreshed Survey123 mobile app, there is a notification on csv update. I could see the list from B.csv. As mentioned, I hope to get this work with web forms. However it looks like I need to go through download linked in content and republish all the time to apply updated list in web form. I saw that there is a new solution coming in May that uses feature tables to generate dynamic list. Would it work for web forms, too? Cheers, Kerry
... View more
04-13-2021
03:52 PM
|
0
|
0
|
5507
|
|
POST
|
Hi, How did you update your csv? when I tested by updating values from data table it did not work. But when I tried overwrite the entire csv it worked. kerry
... View more
04-12-2021
10:53 PM
|
0
|
1
|
5302
|
|
POST
|
What version of mobile app are you using?? When I tried this with 3.12 version on the mobile app it worked fine. There will be a notification window saying that csv has been updated and will redownload it automatically after the csv on agol is updated. I need to use it on the web browser though and haven’t figure it out how I can make it work. kerry
... View more
04-12-2021
10:46 PM
|
0
|
2
|
5523
|
|
POST
|
Hello @IsmaelChivite Thank you for your response. I forgot to mention that we are actually using this survey as a web form mainly. Is this approach not supposed to work with the web form? My Survey123 Connector is v 3.12.230. Just tested with 3.12 Survey123 app and it works fine, but we really need to get this work on a web form. Please advise. 🙂 Cheers, Kerry
... View more
04-08-2021
09:40 AM
|
0
|
0
|
5358
|
|
POST
|
Hello all, Last week I asked a question regarding 'auto updating choice list' and got some directions using 'select_one_from_file' which I was not aware of. This was great! (https://community.esri.com/t5/arcgis-survey123-questions/update-choice-list-with-python-api-in-notebook/m-p/1042263#M33537) My main goal of using this approach is automating choice list update process through Python or overwrite csv on AGOL (added as Linked content in the Connect), not necessarily going through Survey123 Connect. Based on the comment I received, it sounded like updating CSV on AGOL will automatically update the choice list, but I do not see the expected result. 1. Survey has been published. 2. Created a csv file for external choice and uploaded on AGOL. 3. Downloaded csv within Linked Content and republished the survey. --> I can see the new list from csv. ------- 4. Overwrite csv manually with new file on AGOL. 5. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 6. Updated some values (name/ label) in the csv table on AGOL Data page directly. 7. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 8. Overwrite csv automatically using the sample Python script. 9. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 10. Republished the survey. The selection list has not been changed. ------- 11. Downloaded csv in Linked Content (updated from previous steps) in the media folder and republished the survey. Then the list has been updated. So this is a summary. - Connecting CSV in Linked Content first time populated expected choice list. - Any changes in CSV is not reflected since then. - If I download the CSV in media folder, then hit 'refresh' in Survey123 Connect I can see the new list.
... View more
04-08-2021
09:02 AM
|
0
|
7
|
5396
|
|
POST
|
Hello @ZacharySutherby I used the external choice list method as advised but it looks like the selection list is not updated properly. To test, I overwrite the csv manually and also used Python API. This is what I did. 1. Survey has been published. 2. Created a csv file for external choice and uploaded on AGOL. 3. Downloaded csv within Linked Content and republished the survey. --> I can see the new list from csv. ------- 4. Overwrite csv manually with new file from the hosted table published. 5. Checked the survey. The selection list has not been changed. ------- 6. Updated some values (name/ label) in the csv table from Data page on AGOL directly. 7. Checked the survey. The selection list has not been changed. ------- 8. Overwrite csv automatically using the sample Python script. 9. Checked the survey. The selection list has not been changed. ------- 10. Republished the survey. The selection list has not been changed. ------- 11. Downloaded csv in Linked Content (updated from previous steps) and republished the survey. Then the list has been updated. Based on my observation, I need to open Survey123 Connect and download csv within Linked Content? I am not sure if I am missing any step. What I ideally like to see is that the list can be updated by end users who does not have the survey123 connect installed. There will be multiple of this survey and I won't be able to support in updating list in a timely manner. Cheers, Kerry
... View more
04-06-2021
10:40 AM
|
0
|
2
|
5581
|
|
POST
|
Hi @ZacharySutherby thank you for providing the alternative solution. I have not user the external choice but it sounds actually very efficient. I will take a look at the url and the sample script. Cheers, Kerry
... View more
03-30-2021
08:07 PM
|
0
|
0
|
5619
|
|
POST
|
Hello all, I have a survey that requires frequent update on the choice list. Since the survey content may need to be managed by actual users who are not familiar with Survey123 connector at all, I hope to find a way to do it using Python API. My idea is that the Python script is stored in Notebook on ArcGIS Online so it can be managed on cloud environment easily and people with the permission can access. Has anyone used Python API to do this? Thank you. Kerry
... View more
03-30-2021
02:01 PM
|
0
|
9
|
5678
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2020 02:08 PM | |
| 1 | 04-22-2021 11:02 PM | |
| 1 | 01-15-2024 05:16 PM | |
| 1 | 04-18-2024 08:25 AM | |
| 2 | 03-01-2024 11:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|