Select to view content in your preferred language

Dynamic Combo Box Field

2770
5
02-23-2024 08:45 AM
JoelPerkins
Regular Contributor

Hello, I have a question about configuring a form in Field Maps in ArcGIS Online. I can't use a calculated expression in a form field (with a combo box type) to populate the code/values of the combo box, correct? 

Something like this wouldn't work? Thanks..

var myList = {

code: "1", value: "choice 1",

code: "2", value: "choice 2",

code: "3", value: "choice 3"

}

return myList

 

 

5 Replies
SarahSaint-Ruth
Esri Contributor

Hi @JoelPerkins ,

You cant use Arcade today to create lists for Field Maps. Could you share a little more about your use case? One alternative is to use Contingent Attribute Values. These are honored in Field Maps and lets you create change the values of a list based on the values of another field.

Sarah

0 Kudos
JoelPerkins
Regular Contributor

Thanks Sarah. 

I have a standalone hosted table with user names and equipment descriptions. It is in the same web map as the feature class that I'm creating my form from. I was hoping to be able to use Arcade to pull the equipment descriptions down based on who was logged in. I was able to do that. If it was only 1 piece of equipment, this would work because I wouldn't need the combo box. But the table is 1:M (username to equipment description). So I'd need to take that list in Arcade and populate the combo box somehow. But it's not possible I guess. 

0 Kudos
MitchellGrafstein
Frequent Contributor

Not sure if this completely fits your use case, but there have been some community workarounds for building multiselect lists based on a domain in a separate field: Multiple choice option in Field Maps - Esri Community

However, you would also have to build the domain for the field in question based on your table data.  This can be done in a few different ways, but adds a bit more legwork to the solution.

I hope this helps.

Mitchell Grafstein, Horticultural Inspector 1, NYS Dept. of Agriculture and Markets
0 Kudos
ahargreaves_FW
Frequent Contributor

Hi Sarah,

What about the ability to create a simple buffer around a point A, gather up any records from Layer B that fall within 500ft, and present their IDs as a drop down within point A...

This can be done relatively simply in Survey123 but is impossible within Field Maps.

MarkGo
by
Occasional Contributor

This is my use case as well. I want the user to be able to put a point down in a parcel, and bring up a combo box with the 5 nearest street names to make address entry faster / more error-proof.
Because of the fact that the parcel can be bordered by multiple streets, and the point being placed in the parcel indicating the location of something, it wouldn't necessarily be near the street that the address is based on.

0 Kudos