HOW TO

Configure the Vote button to display in Crowdsource Polling using ArcMap

Last Published: June 9, 2020

Summary

Crowdsource Polling is useful in submitting comments or feedback on plans, events or proposals. The app also allows voting, and stores the quantity of submitted votes through the web application. The Vote button must be displayed in Crowdsource Polling through the hosted feature published using ArcMap as it is not available by default in the web application.

This article provides instructions to configure the Vote button for Crowdsource Polling using ArcMap.

Procedure

  1. In ArcMap, create a new file geodatabase to store the data required for the workflow.
  2. Create a new feature class in the file geodatabase created in Step 1, and drag the feature class to the Table Of Contents pane. In this example, a point feature class is created.
  3. Add features to the feature class. In this example, point features are added to the point feature class.
  1. Click the Editor drop-down list, and select Start Editing.
  2. Click the Create Features icon.
  3. In the Create Features pane, click the point feature class created in Step 2, and click the Point icon in the Construction Tools pane.
  4. Hover the cursor on the map, and click any part of the map to add the point features.
Image showing the Add features to the point feature class UI
  1. Create a new table in the file geodatabase created in Step 1, and drag the table to the Table of Contents pane.
  2. Use the Add Global IDs tool to add a global ID field to the feature class created in Step 2. Select the feature class created in Step 2 for Input Datasets, and click OK.
Image of the Add Global IDs dialog box
  1. Add a new field with the Short or Long field type to the attribute table of the feature class created in Step 2.
    1. Open the attribute table of the feature class.
    2. Click the Table Options button, and click Add Field.
    3. In the Add Field dialog box, type Vote for field Name.
    4. Select Short Integer or Long Integer from the Type drop-down list.
    5. Click OK.
Image showing the Add field to attribute table UI
  1. Add a new field with the Guid field type to the table created in Step 4.
    1. Open the table.
    2. Click the Table Options button, and click Add Field.
    3. Type Guid for field Name.
    4. Select Guid from the Type drop-down list.
    5. Click OK.
Image of the Guid field
  1. Use the Create Relationship Class tool to create a relationship class between the feature class created in Step 2, and the table created in Step 4.
    1. Select the feature class created in Step 2 for Origin Table.
    2. Select the table created in Step 4 for Destination Table.
    3. Specify a name for Output Relationship Class.
    4. Select Simple for Relationship Type.
    5. Specify ONE_TO_MANY for Cardinality.
    6. Select GlobalID for Origin Primary Key.
    7. Select Guid for Origin Foreign Key.
    8. Click OK to execute the tool.
Note:
The Forward Path Label, Backward Path Label, and Message Direction parameters are automatically filled. Optionally, change the Destination Primary Key (optional) and Destination Foreign Key (optional) parameters in ArcMap. Refer to ArcMap: Create Relationship Class for more information. 
Image of the Create Relationship Class tool dialog box
Image of the Create Relationship Class tool dialog box
  1. Publish the map with the feature class and tables to ArcGIS Online.
  2. Log in to ArcGIS Online, and create a Crowdsource Polling web application using the hosted feature layer published in Step 9.
Note:
Ensure the Enable editing check box is checked so the hosted feature layer remains editable. Refer to ArcGIS Online: Allow others to edit for more information.
  1. Navigate to Content > My Content, and open the hosted feature layer published in Step 9 in a new Map Viewer.
Image of the Content tab
  1. Click Save > Save as, and fill in the required details to save the web map, and click Share.
  2. In the Share dialog box, check the check boxes of the groups to share the web map with, and click CREATE A WEB APP.
Image of the Share dialog box
  1. In the Create a New Web App dialog box, navigate to the Configurable Apps tab and select Crowdsource Polling.
  1. In Crowdsource Polling, select the Options tab, and set the parameters as follows:
    1. For Polling feature layer, set the hosted feature layer published in Step 9.
    2. For Field storing the vote tally for each report, select Vote.
    3. For Field used for sorting the list of features, select Vote.
    4. Click Save to view the Vote button for the point features.
    5. Click Launch to run the application.
Crowdsource Polling application

Article ID: 000022644

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options