Solved

Is it possible to redirect the page to other page...

Posted on 2010-09-02
2
398 Views
Last Modified: 2012-06-21
Usually in Sharepoint after you edit an item in the custom list you will be redirected to the allitems.apsx page, is it possible to redirect the page to other page instead to allitem.aspx page after editing an item in custom list? I want it to redirect to default.aspx page instead.


CustomList.png
0
Comment
Question by:PagodNaUtak
2 Comments
 
LVL 6

Accepted Solution

by:
nipunu earned 250 total points
ID: 33594243
0
 
LVL 15

Assisted Solution

by:dp_expert
dp_expert earned 250 total points
ID: 33594447
The simplest method is to create (with content editor web part) a custom link to the "newform.aspx" - simply add "?source=/default.aspx" after the newform.aspx and sharepoint will take of the rest.
More fail-proof method would be editing the newform.aspx page and adding javascript that would detect if you have the ?source=/default.aspx in the url and if not would redirect to address with the "?source" - this way page would add the "source" script itself so no matter where you came from it would redirect correctly.

<script type="text/javascript"> 

if(window.location.href.indexOf('?source=/default.aspx')<1) {window.location=window.location.href+'?source=/default.aspx';}

</script>

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now