Select to view content in your preferred language

Single Choice or Dropdown Fields Always Converted to String Variables?

727
2
08-24-2017 07:42 AM
JamesProctor1
Deactivated User

I want to add a Survey123 field that is numeric, but with fixed choices (say, any one of five integer values). I tried doing this via a dropdown field, but it is then interpreted in ArcGIS Online as a string variable, and thus cannot be styled correctly. (And I can't find a way to convert a string field to an integer field—looked here.) 

If anyone has a recommendation on how to enter a fixed-choice numeric field in Survey123 that will be interpreted correctly as a numeric feature layer in ArcGIS, I'd sure appreciate.

Regards,

Jim Proctor

Tags (1)
0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Jim,

In Survey123 Connect, you need to set the bind::Esri:fieldType parameter to esriFieldTypeInteger - this will create an integer field for the survey.  See the attached example.

JamesProctor1
Deactivated User

Great, very helpful...I shall have to learn Connect!...Regards, Jim P.

0 Kudos