<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Upload a list for choice field in feature layer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1234033#M48991</link>
    <description>&lt;P&gt;I am wanting to setup a layer for capturing tree plots.&lt;/P&gt;&lt;P&gt;I would like to create a choice list for the tree species.&amp;nbsp; I have the list of species in a csv file but I can't find way to upload it into the feature layer as a pick list.&lt;/P&gt;&lt;P&gt;Is there a way to this?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 09:50:13 GMT</pubDate>
    <dc:creator>TobyChapman</dc:creator>
    <dc:date>2022-11-22T09:50:13Z</dc:date>
    <item>
      <title>Upload a list for choice field in feature layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1234033#M48991</link>
      <description>&lt;P&gt;I am wanting to setup a layer for capturing tree plots.&lt;/P&gt;&lt;P&gt;I would like to create a choice list for the tree species.&amp;nbsp; I have the list of species in a csv file but I can't find way to upload it into the feature layer as a pick list.&lt;/P&gt;&lt;P&gt;Is there a way to this?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1234033#M48991</guid>
      <dc:creator>TobyChapman</dc:creator>
      <dc:date>2022-11-22T09:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a list for choice field in feature layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1235598#M49045</link>
      <description>&lt;P&gt;I have not seen a way to automatically do this in ArcGIS Online! The only way I have see to create a pick list of values in a feature layer in ArcGIS Online is to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Feature Layer from scratch in ArcGIS Online&lt;/LI&gt;&lt;LI&gt;Click on the &lt;STRONG&gt;Feature Layer&lt;/STRONG&gt; &amp;gt; Select the &lt;STRONG&gt;Data&lt;/STRONG&gt; tab (from the menu that says Overview, Data, Visualization, etc.)&lt;/LI&gt;&lt;LI&gt;Click on &lt;STRONG&gt;Fields&lt;/STRONG&gt; on the top right&lt;/LI&gt;&lt;LI&gt;A large &lt;STRONG&gt;+Add&lt;/STRONG&gt; button shows up on the top left &amp;gt; Add a field to the Feature Layer for the list (ex. Trees)&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;Add New Field&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;The new field should appear in the list &amp;gt; &lt;STRONG&gt;click on the field name&lt;/STRONG&gt; (ex. Trees)&lt;/LI&gt;&lt;LI&gt;A &lt;STRONG&gt;Create List&lt;/STRONG&gt; button shows on the top right&lt;/LI&gt;&lt;LI&gt;This will show the prompt window for adding values (in this case, tree species) to the list. There doesn't appear to be an automatic upload - so you might have to type the values in manually.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you're using ArcGIS Field Maps, it will show up as a list picker on the GPS Unit/iPad - or if you are doing some other type of data collection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if there is an alternative way to do this! Like with a pre-created CSV file that you can upload to the site to create the Feature Layer - I've tried a few different methods, but nothing was successful. I think manually creating the list might be the only option.&lt;/P&gt;&lt;P&gt;Good luck with your project!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 20:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1235598#M49045</guid>
      <dc:creator>SaraJL</dc:creator>
      <dc:date>2022-11-28T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a list for choice field in feature layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1235696#M49060</link>
      <description>&lt;P&gt;You can use the python API for this.&amp;nbsp; Just need to convert the csv to json dictionary formated as below.&lt;/P&gt;&lt;P&gt;Here is what I use with subset of MUTCD codes for example:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from arcgis.gis import GIS

#JSON dictionary of the Domain Code/Values
# Replace FieldName with the name of the field you want the list on

update_dict = {"fields": [
    {
      "name": "FieldName",
      "domain": {"type":"codedValue","name":"Coded_Value_Domain_Name",
      "codedValues":[
          {"name" : "Unknown", "code" : "Unknown"}, 
          {"name" : "Custom (Warning)", "code" : "Custom (Warning)"}, 
          {"name" : "W16-13P", "code" : "W16-13P"}, 
          {"name" : "W17-1", "code" : "W17-1"}]}}]}

# Connect to your AGOL account

my_agol = GIS(url='https://yourOrgHere.maps.arcgis.com/', username='AdminUser', password='AdminPass')

# Get the first layer - Layer 0 - of your Hosted Feature Layer with ID &amp;lt;HFL_ID&amp;gt;
# Change this to the layer number you want to modfy the Choice List for

lyr = my_agol.content.get('asdagaasf54ahghdf').layers[0]

update = lyr.manager.update_definition(update_dict)&lt;/LI-CODE&gt;&lt;P&gt;This does not add to the list, but overwrites it.&amp;nbsp; So, I keep the json list in text editor so when I need to modify it, I just copy/paste into the script.&lt;/P&gt;&lt;P&gt;This is also the easiest way I have found to add somehting to the list and don't want it at the end.&amp;nbsp; After running this script, choice list is sorted in the order of the update_dict json.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 15:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/upload-a-list-for-choice-field-in-feature-layer/m-p/1235696#M49060</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-11-05T15:43:10Z</dc:date>
    </item>
  </channel>
</rss>

