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

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options