In Edit List of values -> configuration Tab select view Attribute and list attribute as department id .
Also Edit List of values ->UI hint display attribute is selected as Department name.
I had done the same. Department name is viewed in the LOV but when I select a particular name, ID gets displayed on the form instead of the name.
I want Dept name to be displayed after the user selects it.