PROBLEM

Calculation works in Survey123 Connect but not in the web browser

Last Published: August 14, 2024

Description

Using an "if selected" calculation to auto-populate a field works as expected in Survey123 Connect but does not work in the web form. For example:

if(${status}='good', 'green') OR if(${status}='ok', 'yellow') OR if(${status}='bad', 'red', 'white')

Cause

The web form cannot apply the same logic as Survey123 Connect.

Solution or Workaround

It is recommended to chain if statements together. Each if statement is the 'else' choice for the proceeding if statement until the end. That is where to add the default option if none of your if statements are true. For example:

if(${status}='good', 'green', if(${status}='ok', 'yellow', if(${status}='bad', 'red', 'white')))

Article ID: 000033075

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

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options