Crowdsource Reporter-Drop down menu

512
1
08-15-2022 12:09 PM
AshleighReeves
New Contributor III

Is there a way in the Crowdsource Reporter application where I can have a drop down of pre-listed categories in the report form portion of the application?

 

AshleighReeves_0-1660590534460.png

 

Tags (1)
0 Kudos
1 Reply
JasminePrater
Occasional Contributor

This answer may come too late, but you will want to set up the domains in the feature layer associated with your report.  You can set them up manually, or you can create a CSV file and add that during configuration of the Crowdsource Reporter.  I went the CSV route, since I modeled my setup like the Citizen Problem Reporter solution. 

In the CSV, the column headings are source field, name, label, and source value.  For source field, you want to use the exact spelling of the Field Name for that field within the Feature Layer.  This can be found in the Feature Layer's Data tab and selecting the Fields view.  For your different categories, add them to the name and label columns, leaving source value blank.  For each type within the categories, add them to the same list, where source field is the Field Name for your types, name and label are the types, and source value is the corresponding name of the category to which it belongs.

In the below example, IssueCategory and IssueType are fields within the Feature Layer for the report.

source fieldnamelabelsource value
IssueCategoryPedestrian SafetyPedestrian Safety 
IssueCategoryBike SafetyBike Safety 
IssueTypeCrosswalkCrosswalkPedestrian Safety
IssueTypeNeed Bike LanesNeed Bike LanesBike Safety

 

I uploaded the CSV to AGOL, and selected the version that doesn't create a table.  When adding the CSV's URL during the Reporter configuration on the Form tab, I had a lot of difficulty figuring out which URL to use.  Again, I referred back to the Citizen Problem Reporter, copied the URL they used in their config, and replaced the AGOL website with ours and replaced the item ID number with the ID for my uploaded CSV.  That ID number can be found in the URL for the CSV starting after "id=".  Mine looked something like https://[ your arcgis site]/sharing/rest/content/items/[Item # for CSV]/data.  That URL might be different depending on how your site is setup and you might need to play around with it to get it to upload correctly.

Hopefully, this information will help someone in the future that has this question!

0 Kudos