Clear form

Clear form

How do I wipe data entered into a form when a an event happens such as a pick list selection is changed or invalid numbers entered? Is there a clear function? I tried setting the values to null but I on number fields it only allows for a 0 and I would like it to be completely empty.