PickList

PickList

Hi, 
   I have a question regarding the picklist component, 

I have two picklist dependent each other, one for country and another for state.

In country I chose that the value gonna be the ID (System Field) of the Country form and the Display field is the name of the country



Like this:



My question is how can I set on deluge script that the value of the state dropdown is going to be one ID and the display name is going to be another dynamically.


I reviewed the syntaxis of DropDown:ui.add(value) but this just indicate that I need to set the value and not the display name.


Please advise.