how to clear fields when I change the state

akshayjain
Tera Expert

I have created a custom field  on on hold state. Now when state is on hold, the field is filled. When state changes to work in progress, those fields have stored values, again when i m putting state to  on hold  those values are  not  clear.