Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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 …

813 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

13 Experts available now in Live!

Get 1:1 Help Now