Select to view content in your preferred language

Experience Builder conditional display of fields text widget

196
3
2 weeks ago
Labels (1)
ElisJD
by
New Contributor

I am building a web app in ArcGIS Experience Builder to display survey data.

Each stop has a number of attributes grouped into categories, and I am displaying these using a text widget with dynamic content (e.g. {Field Name}).

I have a set of dependent questions:

  • “Pole Present” (Yes/No)

  • “Pole Type”

  • “Pole Condition”

If “Pole Present” = No, the other fields are empty.

What I am trying to achieve is:

  • If “Pole Present” = Yes → display the actual value (e.g. Pole Type)

  • If “Pole Present” = No → display “No pole present”

Is this possible with the Text Widget Expression tab, to have something along the lines: 

if {Pole Present} = "Yes", then {Pole Type}

else "No pole present"

 

0 Kudos
3 Replies
ShengdiZhang
Esri Regular Contributor

Hi @ElisJD ,

You can insert an Arcade expression into the text widget to display dynamic content.

ShengdiZhang_0-1777253724939.png

Regards,

Shengdi

0 Kudos
ElisJD
by
New Contributor

Hi, thank you for this.

What version do you need for this? This is not showing for me?

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi, this is supported from Enterprise 12.0.

0 Kudos