dinsdag, oktober 02, 2007

Redirecting after using InfoPath Form (web-enabled) in Sharepoint 2007

  1. Use the Source query string: so the page will know where to navigate to after the form is closed or submitted (Watch Out: The URL must be in the same site collection or an error will be returned.)
  2. Add the OnClose event to the XmlFormView, add code to redirect after closing:
    Response.Redirect(http://www.dolmen.be);
    In the Infopath Form, you must add the Action: "Close this form: No Prompt" in the rules of the InfoPath Button, otherwise the OnClose event won't fire.

Source blogposts:

Geen opmerkingen: