Select to view content in your preferred language

Smart Forms: Create a dynamic dropdown?

179
4
Jump to solution
2 weeks ago
AlfredBaldenweck
MVP Regular Contributor

I'd like to give the users of the smart form the option of a dropdown list in a text field.

However, I do not want to create a domain for this list; I want to generate its contents dynamically for each feature I edit.

Is this possible?

0 Kudos
1 Solution

Accepted Solutions
EmilyGeo
Esri Regular Contributor

Hi @AlfredBaldenweck

Thanks for sharing your use case. No, unfortunately there is no way to add values to a domain on the fly at this time. Any work around would require some regular maintenance to update the domain. 

View solution in original post

0 Kudos
4 Replies
EmilyGeo
Esri Regular Contributor

Hi @AlfredBaldenweck

what do you want the contents of the list to be based on? If you want to have different domains available based on the value in another field, you can set that up in ArcGIS Pro using subtypes. 

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

Hi Emily, thanks for the response. 

The use case for this would be like, selecting a value from a related record in a 1:M relationship.

So, if the relationship is something like:

Table 1ORIG_IDField2
0Paris 
1London 
2Madrid 

 

Table 2FruitRELID
0PommeParis
1PoireParis
2CitronParis
3AppleLondon
4PearLondon
5ManzanaMadrid

 

I'd like the dropdown for Field2 in the origin table to give me the options of Pomme, Poire, and Citron when I'm doing something in the record for Paris.

I don't think subtypes would work because I'd have to do some sort of regular maintenance to update it. The "fruits" are a list that is constantly growing, which is why I was hoping I could just do this as a lookup in the related table, so that whenever I add a related record, it pops up in the drop down for the parent record.

0 Kudos
EmilyGeo
Esri Regular Contributor

Hi @AlfredBaldenweck

Thanks for sharing your use case. No, unfortunately there is no way to add values to a domain on the fly at this time. Any work around would require some regular maintenance to update the domain. 

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

Bummer.

Oh well, here's the Idea I made for this: Smart forms: Dynamic, user-generated dropdown, ins... - Esri Community