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?
Solved! Go to Solution.
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.
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.
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 1 | ORIG_ID | Field2 |
0 | Paris | |
1 | London | |
2 | Madrid |
Table 2 | Fruit | RELID |
0 | Pomme | Paris |
1 | Poire | Paris |
2 | Citron | Paris |
3 | Apple | London |
4 | Pear | London |
5 | Manzana | Madrid |
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.
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.
Bummer.
Oh well, here's the Idea I made for this: Smart forms: Dynamic, user-generated dropdown, ins... - Esri Community