How to enable or disable the field?