Depends on not working properly

I am using a customised form to view a party name only if the party type is employee.
I put the following code in depends on:
it works fine when i chose party type as employee
BUT the problem comes when I try other party type, i get a message
Field not permitted in query: employee_name
Can someone tell me what I am doing wrong