Domain Coded Values or Manual Entry

415
2
Jump to solution
06-15-2022 09:58 AM
JorgeKappa
Occasional Contributor

Hi,

Is it possible to create a domain where the user can pick a coded value or enter a non coded value manually?

TIA

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JohannesLindner
MVP Frequent Contributor

AFAIK, it's not possible to change the manual editing workflow to "select one of the domain codes or type in your own value".

But you can insert features with "wrong" values using Python (and probably Arcade, though I haven't tested that):

with arcpy.da.InsertCursor("Table", ["Field"]) as cursor:
    cursor.insertRow([5])  # Coded Value Domain [0, 1]

JohannesLindner_1-1655359468442.png

 

 


Have a great day!
Johannes

View solution in original post

2 Replies
JohannesLindner
MVP Frequent Contributor

AFAIK, it's not possible to change the manual editing workflow to "select one of the domain codes or type in your own value".

But you can insert features with "wrong" values using Python (and probably Arcade, though I haven't tested that):

with arcpy.da.InsertCursor("Table", ["Field"]) as cursor:
    cursor.insertRow([5])  # Coded Value Domain [0, 1]

JohannesLindner_1-1655359468442.png

 

 


Have a great day!
Johannes
JorgeKappa
Occasional Contributor

Thank you, Johannes. This is clever. Not something the guys in the field could do, but clever nevertheless.

0 Kudos