How can I link a code field to a dropdown list?