"Well you could just set the tab order so it flows onto the next field but if you want to use code then put into the exit event: xfa.host."