HOW TO

Assign questions based on user roles or usernames in ArcGIS Survey123 Connect

Last Published: May 23, 2022

Summary

In ArcGIS Survey123 Connect, the questions can be assigned, or restricted based on user roles or usernames. This article provides the workflow to allow only certain user roles or specific usernames to respond to the questions.

Procedure

  1. Add a question and define the username to respond to the survey.
    1. In ArcGIS Survey123 Connect, click XLSForm to open the XLSForm file of the survey.
The XLSForm file of the survey.
  1. In the survey worksheet, in the type column, click an empty cell, and select username from the drop-down list.
  2. In the calculation column, enter the following pulldata() function:
pulldata("@property",'username')
The survey worksheet with the calculation column.
  1. Create a CSV file with a list of usernames and user roles.
    1. Create a Microsoft Excel file with the list of usernames and designated roles, as shown in the image below.
The list of usernames and designated roles in Excel.
  1. Save the file as a CSV file. Refer to Microsoft Support: Save a workbook to text format (.txt or .csv) for instructions.
  1. Import the CSV file to the survey's media.
    1. In ArcGIS Survey123 Connect, click Files to open the survey files' folder.
The survey's file folder.
  1. Copy the CSV file into the media folder. In this example, the CSV file is Usertypes.
The CSV file.
  1. Reference the CSV file in the XLSForm file.
    1. In the survey worksheet of the XLSForm file, in the type column, click an empty cell, and select calculate from the drop-down menu.
    2. In the calculation column, enter the following pulldata() function:
pulldata('<CSV file name>','<the name of the user role column>','<the name of the username column>', ${<question>})
To worksheet with the calculation column.
  1. Assign the questions based on the user role or username.
    1. To make the question visible to a specific user role, in the relevant column, enter the following selected() function:
selected(${<the CSV question name>},'<user role>')
  1. To make the question visible to a specific username. In the relevant column, enter the following formula:
${<Name>}='<username>'
The survey worksheet to enter the functions and the formula in the relevant column.
Note:
Multiple values can be used in the relevant column. These values must be separated by 'or'. For example, selected(${<the CSV question name>},'user') or selected(${<the CSV question name>},'Data Editor').
  1. Click Save.
  2. In ArcGIS Survey123 Connect, click Publish to publish the survey.
The published survey.

Article ID: 000027543

Software:
  • ArcGIS Survey123 Connect

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

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options