Clear inputs after submitting an action.