HOW TO

Configure the Vote button to display in Crowdsource Polling using ArcGIS Pro

Last Published: September 12, 2023

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 layer published using ArcGIS Pro as the Vote button is not available by default in the web application.

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

Procedure

  1. In ArcGIS Pro, 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 Catalog 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 Edit tab, and click Create.
  2. In the Create Features pane, under Templates, click the point feature class drop-down list, and select the Point icon.
  3. 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. Use the Create Table (Data Management) tool to create a new table in the file geodatabase created in Step 1, and drag the table to the Catalog 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 Run.
Image of the Add Global IDs geoprocessing pane
  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. Right-click the feature class, and click Attribute Table.
    2. Click the Add Field Image of the Add Field icon icon to add a new Short or Long field to the attribute table.
    3. Type Vote for Field Name .
    4. Select Short or Long from the Data Type drop-down list.
    5. Click the Save icon to save the new field.
Image showing the Add field in the attribute table UI
  1. Add a new field with the Guid field type to the table created in Step 2.
    1. Right-click the feature class, and click Attribute Table.
    2. Click the Add Field Add Field icon icon to add a new Guid field to the table.
    3. Type Guid for Field Name.
    4. Select Guid from the Data Type drop-down list.
    5. Click the Save icon to save the new field.
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. Select ONE_TO_MANY for Cardinality.
    6. Select GlobalID for Origin Primary Key.
    7. Select Guid for Origin Foreign Key.
    8. Click Run to execute the tool.
Note:
The Forward Path Label, Backward Path Label, and Message Direction parameters are automatically filled. Refer to ArcGIS Pro: Create Relationship Class (Data Management) for more information.
Image of the Create Relationship Class tool pane
  1. Share the map as web map 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 desired 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, select 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. The Vote button is now available for the point features.
    5. Click Launch to run the application.
Crowdsource Polling application

Article ID: 000023279

Software:
  • ArcGIS Pro 2 x

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