Prevent default action when triggering the guardFormError.