Enabling or disabling the required function to a field