formatFieldWithFunction to work with dropdowns

allowing formatFieldWithFunction to work with fields that use dropdowns
(i.e. fields set with defineValidValues)