Fixed errors in hiding/displaying behavior of field and managing mandatory property.