How to make a dependent field based on user assigned to record

Is there any way to make a field in a module dependent on whether a specific user is assigned to the record?

E.g. if 'John Smith' is assigned to the record then text field 'ABC' appears.