How can I change the url of add new item in sharepoint sharepoint designer

Hi,

Could any one of you please help me how to change the URL of add/edit/view Item.

The things is when user clicks on Add/Edit/View item, It's showing a dialogue box by default..

I want to redirect to another page once user clicks on "Add/Edit/View Item" instead of dialogue box.

I have search in Google for this and there is a way to do this with the coding

Could anyone of you please help me how we can do this SP designer.

using ( var ctx = new ClientContext( url ))
{
    var list = ctx.Web.Lists.GetByTitle( 'List' );
    list.DefaultNewFormUrl = newFormUrl;

    list.Update();
    ctx.Load( list );
    ctx.ExecuteQuery();
}

Thanks,

Venkat

May 28th, 2015 5:50am

Hi

If i understand correctly, on click of "Add/Edit/View Item" button instead of opening default forms, you want user to navigate to custom pages.

You can achieve this using SharePoint Designer by following below steps-

1.) Open SharePoint Designer.

2.) Click on Lists and Libraries from left panel and then select required List/library from right panel.

3.) Then click on Item under Content Types section

4.) On this page under Forms section, you have option to set default URLs for Add/Edit/View pages as shown below-

In case you just dont want the forms to open in dialog, you can follow below steps to change settings-

Open List/Library settings -> Advanced Settings -> Change "Launch forms in Dialog" to No

Hope it helps.

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 6:35am

Hi

use this script 

<script>
var ttnA = document.getElementsByTagName('A');
for (var j=0; j<ttnA.length; j++)
{
  if (ttnA[j].id == 'idHomePageNewItem')
  {
    ttnA[j].innerHTML='your new text goes here'
  }
}
</script>

http://techtrainingnotes.blogspot.in/2010/08/sharepoint-2010-change-add-new-item-and.html

http://alispasset.blogspot.in/2012/06/hw-to-change-ad-nw-item-link-in.html


May 28th, 2015 6:36am

Hi,

Thanks for quick reply...

I have followed the your steps and given the URL for New form like this

"http://Site/subsite/Project/pages/CustomAddNewItem.aspx",

It's throwing an message "Web Page can't found when click on Add Item.

Please correct me how to enter the above URL in SPDesigner --> List --> Item --> Form -->New Form.

Thanks :)

Venkat


Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 7:01am

Hi

You can use relative URL or you can copy your pages to All Files -> Lists -> "Your List Name"

1.) Open SharePoint Designer

2.) Click on All Files from left panel and then click on lists in right panel.

3.) Click on list name and copy your pages at that location.

4.) You can also see default pages present there and relative URL is like - Lists/<LIst Name>/NewForm.aspx

you can use same relative url for your custom pages.

Hope it helps.

May 28th, 2015 7:12am

Hi, Excellent :) Thanks a lot for your guidance.. Finally I can change the URL of Add New Item link successfully. Could you please help me how to display the left pane in custom page by default. Currently it's redirecting to custom page but it's not showing the left pane. Thanks, Venkat
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 8:00am

Hi Venkat,

Can you please explain which left pane you are referring ?

May 28th, 2015 8:35am

Hi Danny,

By default, once we opened the any default page of share point site  left side it will display the navigation links like Lists,Libraries,All site content... etc....

I am expecting the same functionality in the Custom page.

Thanks,

Venkat

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 8:47am

Hi Venkat,

It depends on how you created your Custom page - which page layout you used (like Blank Web Part page layout includes quick launch by default) or which master page etc.

You can also refer this link for ways to enable quick launch-

http://sharepointpromag.com/sharepoint-administration/four-ways-add-or-remove-quick-launch-menu-control

https://social.technet.microsoft.com/Forums/sharepoint/en-US/8ab98ea1-2978-40b2-82d4-b1d2a94442f9/quick-launch-on-newly-created-web-part-page-in-sharepoint?forum=sharepointgeneralprevious

Hope it helps.

May 28th, 2015 8:54am

OKay Thanks a lot for your guidance :) 
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2015 2:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics