locked
DataFormWebPart RedirectULR with Parameter RRS feed

  • Question

  • I've been trying for some now to find a solution and nothing has worked so I hope someone on these boards can offer me some help.

    I have a very customized implementation of SharePoint that involves interlinked ViewForms with EditForms. The exact structure is unimportant but the last step that I need to complete to make this usable is to edit a list item then have the Save button link back to the previous ViewForm. I have successfully passed the ID of that ViewForm to the EditForm as a Parameter (Query String) but whenever I modify the redirectURL string of the Save buttons it won't stick. I save the page then go back to the browser and it continues to redirect the form to the default page.

    This is what I want the redirctURL to be: mydomain.com/SiteName/EditForm.aspx?EngagementID={$ParamIssueID}

    Does anyone have any thoughts? I have parameters working elsewhere on the site but I just can't get it to work here. Thanks in advance!


    Wednesday, April 13, 2011 3:12 PM

Answers

  • Use the "Source" parameter in your URL. Sharepoint forms will redirect to the address mentioned on that parameter. For example,

    http://mydomain.com/site/list/newForm.aspx?Source=http://www.google.ca/

    When a new item is created from the above mentioned form page, the user will be redirected to Google.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by Leoyi Sun Wednesday, April 20, 2011 8:37 AM
    Friday, April 15, 2011 3:31 AM