Summary
In ArcGIS Survey123 Connect, it is possible to create a dynamic survey title to personalize the survey depending on the input information. The survey title is typically defined in the form_title column on the settings worksheet. However, form_title does not support dynamic elements. To create a dynamic survey title, a generated_note_form_title note question must be used.
This article describes two methods to a create dynamic survey title; one using the response to a question and the other using the data retrieved from the use of the pulldata() function in ArcGIS Survey123 Connect.
Procedure
Dynamic title from the survey's response
- In ArcGIS Survey123 Connect, open the survey's XLSForm.
- Create the question for which the response must be used dynamically as the survey title.
- In the survey worksheet, in the type column, select text and specify the name and label columns. In this example, the question is named 'the_name' and labeled 'Name'.
- Create the generated_note_form_title note question.
- In the survey worksheet, in the type column, select note.
- In the name column, type generated_note_form_title.
- In the label column, specify the following expression:
<the question label> ${<the question name from previous step>}
- Save the XLSForm and publish the survey.
The image below displays the survey with a dynamic title based on the response to the Name question.
Dynamic title from data retrieved using the pulldata() function
The pulldata() function can be utilized in surveys to extract data from CSV files, EXIF metadata, geopoint questions, ArcGIS feature layers and more. This method saves time while also ensuring data precision and accuracy as it does not require submitters to manually enter responses.
- In ArcGIS Survey123 Connect, open the survey's XLSForm.
- Create the question for which the response must be used dynamically as the survey title.
- In the survey worksheet, in the type column, select text and specify the name and label columns. In this example, the question is named 'full_name' and labeled 'Full Name'.
- Optionally, in the appearance column, select hidden from the drop-down list to hide the question from being displayed on the survey.
- In the calculation column, specify the pulldata() expression. For more information on extracting certain data using the pulldata() function, refer to ArcGIS Survey123: Functions. In this example, the pulldata("@property") function is used to extract the properties of the signed-in users, such as their names.
pulldata("@property" , 'userFullName')
- Create the generated_note_form_title note question.
- In the survey worksheet, in the type column, select note.
- In the name column, type generated_note_form_title.
- In the label column, specify the following expression:
<the question label> ${<the question name from previous step>}
- Save the XLSForm and publish the survey.
The survey is displayed with a dynamic title based on the signed-in user.