dovresti scrivere il codice che usi.
in genere basta aggiungere un return(false) e tutto funge alla perfezione.

ciao