Select to view content in your preferred language

Survey 123 Connect "autocomplete" problem on smartphone

1303
6
Jump to solution
10-24-2024 03:39 AM
EngineeringLockport
Occasional Contributor

I have created a public use survey utilizing Survey 123 connect.  The survey has a field where it asks for the public to start entering their address and select from the drop-down menu.  After publishing, the survey works well while using a web browser, but when the link is followed using either an android or iOS smartphone, the autocomplete field does not work.

Any guidance would be greatly appreciated!!

0 Kudos
1 Solution

Accepted Solutions
EngineeringLockport
Occasional Contributor

It is a csv.  I will go through it again and retry.  There are over 8000 possible selections so I may have missed something. However, why would it work using the web and not on a smartphone if it is due to the csv?

 

It was just an error in the correct selection on the collaborate tab.

View solution in original post

0 Kudos
6 Replies
abureaux
MVP Frequent Contributor

What is the source of the autocomplete? If it is a CSV, it may be a malformed/corrupt CSV.

0 Kudos
EngineeringLockport
Occasional Contributor

It is a csv.  I will go through it again and retry.  There are over 8000 possible selections so I may have missed something. However, why would it work using the web and not on a smartphone if it is due to the csv?

 

It was just an error in the correct selection on the collaborate tab.

0 Kudos
abureaux
MVP Frequent Contributor

The web interface and app are different engines, so you can sometimes get different behaviour in one vs the other when there are errors involved.

As such, you should always go with the most stringent requirements. Esri has a (good) habit of updating their various engines to do what they originally should have been doing, meaning that what works today may not work tomorrow.

Of course, an error in the CSV is just one possibility. Here are two quick tips:

  • You are required to have two columns named "name" and "label" (just like the "Choices" tab in the XLSX document). All other column names are up to you.
  • If you are working with a large CSV, consider trimming it down to just a couple items for testing purposes. This can help narrow down problems. If it works with a few items, start adding them back and see where it breaks.

If you are able to upload it here, then I could have a quick look.

0 Kudos
EngineeringLockport
Occasional Contributor

I have attached the csv file I am using for the autocomplete appearance.  I have gone through each line and cannot find an issue.

The survey address autocomplete works great on the web, but not on a smartphone.  The majority of my target population will most likely have smartphones rather than computers.  I have looked into using autocomplete along with search() but have not been able to figure that out.  I am not sure if that will help with the smartphone issue or not but wanted to give it a try.

0 Kudos
abureaux
MVP Frequent Contributor

Did you sanitize the data, or is this your raw CSV?

abureaux_0-1730127921715.png

 

If this is your raw CSV (without edits), then you issue is the "name" column. The name column must be unique values. The label column can technically have duplicates, but I wouldn't recommend it because it will confuse the end-user.

0 Kudos
EngineeringLockport
Occasional Contributor

It turns out that I had not selected the correct choice in the collaborate tab.

Thanks you all for your advice and insight.  It will help me along the way!

0 Kudos