Add item to SharePoint list but returning to another location

Brad asked me for a solution to the following scenario:

I have two WSS sites -
- Site A is a project site for all project team members
- Site B is an issue capture and resolution site for three project issue trouble shooters.

Question: How can I call the newitem.aspx, located in Site B - Issues webpart from a link on Site A so that the newitem.aspx form pops up and the Site A users can fill it out. When they click the submit button, they return to Site A?

In other words, SIte A users only need to fill out the issues form. Site B users collect the issues and work them to resolution. My requirement is that Site B issues should be worked and reviewed on Site B, not on Site A.

This can be resolved using the Source parameter on the url of newitem.aspx:

You can add Source=xxx on the url, so:
 
../../../AddItem.aspx?Source=http%3A%2F%2Fwww%2Egoogle%2Ecom
 
Note the encoding!!!
 
After filling out the item, it will bring you back to the specified URL.
 
UPDATE: NOTE THE CASING OF THE Source PARAMETER, FIRST ‘S’ MUST BE CAPITAL!!

19 Comments

  • Works great. Thanks so much for the fix.



    Brad

  • Serge:



    Disregard my last posting. The Go Back To List works just fine and sends the user back to Site A.



    I'd still like to know how to edit the Standard Menu bar though.



    Thanks,



    Brad

  • Make sure that the Source query string parameter has a capital S otherwise it will not work. I thought that HTTP query string parameters were always evaluated as case insensitive but not in this case.

  • Brad, for other kind of modifications like in the menu bar you could use the MacawSharePointSkinner, see the complete top of this blog.



    Serge

  • Great tip-and the comment about it being case sensitive was also crucial!

  • Hi,

    The "Go back to list" points correctly when i do mouse over on it but its returning to the home page instead of allitems.aspx? Please let me know why this is happening and how to resolve it. Appreciate your help ASAP.

    Sunil

  • nhlteamsdumbtrades nhlteamsdumbtrades,thefourmembersofthebeatles thefourmembersofthebeatles,guitarplayercartoon guitarplayercartoon,adjustableroofwasher adjustableroofwasher,gainternationalrainbowforgirls gainternationalrainbowforgirls,jubjubgraphicsforneopets jubjubgraphicsforneopets,_lesviesdesbeatles _lesviesdesbeatles,maldonadomurdergrantspass maldonadomurdergrantspass,finalfantasyshoplayoutsforneopets finalfantasyshoplayoutsforneopets,informationoftreeviperssnakes informationoftreeviperssnakes,

  • carsdbleudesalutationdemontagne carsdbleudesalutationdemontagne,workmanscompensationnurseinformationentitled workmanscompensationnurseinformationentitled,businessprocessaccountinggartnergroup businessprocessaccountinggartnergroup,uhaultruckauctions uhaultruckauctions,southwestluxuryfloorplan southwestluxuryfloorplan,uhaullenexakansas uhaullenexakansas,tuckenterprises tuckenterprises,cartoonforjapaneseoccupation cartoonforjapaneseoccupation,libertyshiplength libertyshiplength,pustcatdollslyricsloosenupmybuttons pustcatdollslyricsloosenupmybuttons,

  • todamusicatejana todamusicatejana,rsvpinthevillage rsvpinthevillage,advancedfinancialservices advancedfinancialservices,rhiannaslastname rhiannaslastname,prognosisofcaninecirrhosis prognosisofcaninecirrhosis,pediatricpulmonologists pediatricpulmonologists,secondcomingmusicitscomingafter secondcomingmusicitscomingafter,194eastdorastveronamissouri 194eastdorastveronamissouri,escolinhademusicamp3downlaod escolinhademusicamp3downlaod,gynstories gynstories,

  • Just a point you do not need to hard code this Source you can just add

    ONCLICK="GoToLink(this);return false;"

    this will append the Source to the end of the string

    value

  • dodgers spring training 2007 [url=http://www.razabalano.info/dodgers26.html]dodgers spring training 2007[/url] dodgers spring training 2007 http://www.razabalano.info/dodgers26.html,women rides beast [url=http://www.newuzbekistan.info/rides19.html]women rides beast[/url] women rides beast http://www.newuzbekistan.info/rides19.html,oakland county rides [url=http://www.newuzbekistan.info/rides19.html]oakland county rides[/url] oakland county rides http://www.newuzbekistan.info/rides19.html,2004 olympics mens 4x200 freestyle relay footage [url=http://www.habadirecto.info/olympics21.html]2004 olympics mens 4x200 freestyle relay footage[/url] 2004 olympics mens 4x200 freestyle relay footage http://www.habadirecto.info/olympics21.html,brooklyn dodgers stadium [url=http://www.razabalano.info/dodgers26.html]brooklyn dodgers stadium[/url] brooklyn dodgers stadium http://www.razabalano.info/dodgers26.html,

  • 14k white gold engraved wedding band size 95 [url=http://www.wuznation.info/engraved21.html]14k white gold engraved wedding band size 95[/url] 14k white gold engraved wedding band size 95 http://www.wuznation.info/engraved21.html,platelet glycoprotein antibody [url=http://www.suglande.info/antibody82.html]platelet glycoprotein antibody[/url] platelet glycoprotein antibody http://www.suglande.info/antibody82.html,engraved barware beer [url=http://www.wuznation.info/engraved21.html]engraved barware beer[/url] engraved barware beer http://www.wuznation.info/engraved21.html,colt saa engraved [url=http://www.wuznation.info/engraved21.html]colt saa engraved[/url] colt saa engraved http://www.wuznation.info/engraved21.html,smart key fob retrofit [url=http://www.facilhaba.info/retrofit31.html]smart key fob retrofit[/url] smart key fob retrofit http://www.facilhaba.info/retrofit31.html,


  • Looks like it will not work in SharePoint 3.0 for a source that is outside of your base URL
    Ex: Will not work if the source parameter is www.google.com for example.

    Any idea?

  • Has anyone find a solution to this last post (by Martin)?

    I am trying to redirect the page outside od my base URL and it gives me File Not Found error!

    Anyone?

  • Hi,
    When a new item is added in a sharepoint list, I want to redirect the user to the View page for that item.

    I tried to do this using Events, but i was not able to get the autogenerated ID of the new added item. So it displays View page but with no data.

    How can i do this?

    Thanks.

  • Although that might be true today, increased use of nitrogen is precisely the kind of adapta- tion that would become more affordable in the future as countries, even developing countries, become wealthier. ,

  • last week our class held a similar discussion about this subject and you show something we have not covered yet, appreciate that.

    - Kris

  • Very important info. Hope to find more items soon!

Comments have been disabled for this content.