Hi, I have 2 buttons in the browser base infopath form that perform different tasks. They all close the form after clicked, but need to run some codes differently before closes. I found that both of the buttons will hit the formEvents_submit routine (I set them to use submit in the button property box). Now if I can tell which button triggered ...