sharepoint-2007infopath-2007

Infopath redirection after cancel and submit


I have the infopath form, I want to redirect it... There are two buttons, I want when user click on submit, it is redirected to page "a.aspx" and when I clicked on cancel, it is redirected to page "b.aspx".


Solution

  • I have got the answers from searching.

    There should be no rule on the button.

    And then on click event of both buttons, use the httprequest.current.response.redirect method