Solved

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

Posted on 2010-09-02
2
402 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

713 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