.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Custom Edit form - close modal dialog and navigate to page

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :SharePoint
Hi, I created one custom edit form for my document library, replaced default save and cancel buttons with input buttons and added the form action to them. Then I set my page as default edit form. When I click edit button, my custom form opens in modal pop up. When I try to save the item by clicking new save button, item gets saved but pop remains as it is. Now, I want the modal pop up to get closed and navigate to page other than the parent page with some parameters after I click save button. How can I achieve this? Thanks!!

View Complete Post

More Related Resource Links

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

How to close the sharepoint modal dialog and refresh the parent page using Server side API?

I am trying to find a way to close a modal page that has been opened with the click event of ribbon control. Once the modal dialog is opened, I'm showing 'OK' button for the user to confirm some action on the respective list item. If the user clicks on 'OK', I'm performing some action on the listitem using server side code. Here the problem for me is, once the action is completed on this listItem, I need to close the dialog and refresh the parent page (AllItem.aspx) using *sharepoint server side

I'm aware that for closing the dialog we have JS code "SP.UI.ModalDialog.commonModalDialogClose". But this is not useful for me, because I should first run some action on the listitem and once that action is complete, then only I should close this dialog.

Open custom aspx page as modal dialog from link


Here's what I'm trying to achieve. I got a url field in my list which contains a link to a custom aspx page I've created earlier. I've added the "&IsDlg=1" property to my url and I want to page to be opened as a modal dialog. However the page opens full window and not as a dialog at all.

Do I have to create a custom field? I've seen how to open a modal dialog with javascript, but my url field only accepts http://xxx aso so I'm screwed. Any help is very much appreciated.

create new custom list form in sharepoint designer and edit in browser

hi, i have created a new list using sharepoint designer 2007. now i inserted a custom list form to modify some field and add new ones. when i finished i will tight my new custom list to the custom form. what i want to know is. i see the status field in my new form. and i only want the status field to appear in the edit form for the one that has the permission to edit the status. then i tought of open the list in my browser and go to the list settings. but what i notice is i dont see my fields i have modified in sharepiont designer in the columns section i only see the ones from the existing list. my question is how can i hide the status field in the new item form that it only show in the edit form. and how do i get my new form in the column section so the end user can add more fields if they want without using sharepointdesigner thnx

cannot register custom edit form through a content type and deploy it as a feature


custom edit form through a content type and deploy it as a feature.. the RTM version of sharepoint 2010 does not register the custom forms. the elements.xml is pretty straight forward..

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <!-- Parent ContentType: Workflow Task (0x010801) -->
 <ContentType ID="0x010801007fc29cb23c2049c3985ccdb95fc8331f" Name="ReviewTask" Group="Content Types" Description="Review workflows task purpose" Inherits="TRUE" Version="0">
   <FieldRef ID="{2C2BE3C6-0EB6-4F53-B612-CF49A7EF4013}" Name="Review Status" />
   <FieldRef ID="{CE1D0566-DDC6-4AA3-80C2-6CEA892F105E}" Name="Review Date" />
   <FieldRef ID="{07CB9AA2-0102-4741-9F9A-AC4A7D62D769}" Name="Review Comments" />
   <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
    <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">

What factors into the calculation of the width of modal dialog windows? (problems with custom master


I have a fairly customized masterpage and while the modal dialog boxes seem fine in Chrome and IE, they aren't rendering wide enough in firefox causing them to need to be horizontally scrolled.

I've figured out that it's not my stylesheet because when I deactivate it the problem still remains. When I try going back to v4.master it also works fine, so I'm mostly positive it's my masterpage.

I've tried going through and removing various customizations but nothing seems to resolve the issue. I'm thinking it may be related to the ribbon which I have detached from the top of the page.

I'm hoping if someone knows how the width of the modal window is calculated I might be able to track down the bug.

I wish I could just set the modal windows to use a different masterpage all together or have more easily accessible css. Maybe Sharepoint 2012? :)

How can I show version history on a custom edit form?



I have a simple list that contains aa title and a number field.  On the edit form, I want to show all prior updates to the number field, like so:

Title:  ABC
01/01/2010     10  Updated by: user1
02/01/2010     20  Updated by: user2
Count:            <Textbox for input>

I can create a custom edit form in Designer, but by default I get a DataFormWebPart with an XSLT.  I don't know how to configure the data source to pull all versions so that they could be shown in the XSLT.  If I can't use the DFWP and have to do everything custom, please provide details and/or links.

This is for WSS 3.0.  Any help would be greatly appreciated.  Thanks!
 - Ed.

edit form page loading is slow with more fields in foundation 2010


Hi friends,

I have recently noticed that ,my list edit form page load time is more compare to old version .

I have migrated my sharepoint site from wss3.0 to foundation 2010. I have a large list with 15,000 items and 43 fields.

My new item form is loading very quickly but edit form taking more than a minute. I tried with helath reports and firebug and yslow tools.

I didn't success with any reason. I request you to send me why it happening to the edit form page only

Out of 42 field 12 fields are lookup and I have field edit permissions enabled for different users.

Let me know what can I do to improve page load time for my list edit form.





Cannot Display Application Page as Custom Form for Content Type



I've created a custom content type in VS. In "Elements.xml" file of my content type, I added my custom application page as new form and deployed as feature.

   <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
    <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">

Hide Modal Dialog Close Button when dialog is already shown


Hey everyone,


Was wondering, how do you hide the close button of a modal dialog, when it's already shown, i.e. the page that's being loaded into the dialog, in there is a web part, and i want to trigger a script call to hide the close button of the current modal container.

I know you could give options to the modal dialog when you shot it to hide the close button, but not sure if you can do it after it has shown. I have no control of adding the option when it's showing the dialog, as this is done by the Add new item link in a list.




Cannot edit pages based on custom page layout


Hi guys!

I have created a site definition that applies a the publishing features and a feature containing some publishing page layouts before it creates some publishing pages based on these layouts.

My problem is that once I create a site based on this definition the resulting publishing pages are not editable. Also in the site definition one of the pages have a webpart added to one of the layouts containers that it should be based on, but when I try to open the page in the browser I get the error: "One or more Web Parts on this page references a zone that doesn't exist".

It appears that either my layouts or publishing page declarations are incorrect, but I cannot for the life of me figure out where. Any help would be greatly appreciated. I've been googling this problem for well over a week now :S


The module part of my site definition:

<Module Name="Homepage" Url="$Resources:cmscore,L

Custom Edit Form Attachment Problems (not the typical one)


Latest versions of MOSS 2007 and SPD with all SP and applicable hotfixes.

I create a new edit form by right-clicking on the original edit form and selecting "New from existing page".  Then I set to "default to master content" and then add a custom list form.  It works fine....attachments and everything. 

However, once I make any changes whatsoever within the newly-created DataFormWebPart, like moving a field to another cell or adding some text, the attach file function starts acting weird.  You hit the "Attach File" button on the toolbar and the DataForm is hidden and the attach file area is displayed as usual, but when you select a file and hit "OK", it simply blanks the attach file field and doesn't return to the DataForm.  You can select other files and attach them fine, but you have to hit "cancel" on the attach file function in order to return to the DataForm.  When you do that, the newly-added files are there and are saved properly when you save the list item.

I've spent days searching for a solution for this.  Any help would be greatly appreciated.

Edit:   This issue is also present on our development farm.  If nothing else, can somebody take a few minutes and try to duplicate?

Steps to Duplicate (in Sharepoint Designer

Custom Edit Form Strange Exception



I have a custom list, which starts a workflow on item creation. After few simple steps in workflow (tryed both state/sequentional), my custom EditForm wont show up, only exception is shown up (as bellow). I don't know where to get more information about where is the exception raising, because the workflow is not raising any exceptions. Can you pls help me? I have no idea what 'Parameter: s' is.

Thank you a lot


Server Error in '/' Application.

Value cannot be null.
Parameter name: s

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: s

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Add my custom ASPX Form for New And Edit In sharepoint foundation 2010


How cna i use my custom aspx page as New and Edit Form for a List Template. Please give me some example.


How to create a custom content type with own custom view ,add, edit and delete form in sharepoint fo


How to create a custom content type with own custom view ,add, edit and delete form in sharepoint foundation server 2010 using visual studio 2010?

I donot want to use default form "form.aspx".

we can use my custom form in place of "form.aspx"?

SharePoint Designer: Sending parameters with "Navigate to Page" form action

I want to create a custom button in my SharePoint form that uses Form Actions that commit the changes in the fields and then navigate to a designated page.  This works very well.

Then I want to send a parameter with the URL, for example: http://.../customform.aspx?ID={@ID}.  SharePoint Designer offers this option, but I have not been able to make it work.  Every time it just sends the literal {@ID} instead of it's content.

Has anyone solved this issue?

show / hide jquery modal dialog box on page load



i have a jquery modal dialog box which displays on page load of my asp.net web app - i am using asp.net aspx pages and c#

how can i hide this pop up if a value for example is false and display it if a value is true?

the following is my jquery code:

$(function() {


modal: 'true',

title: 'title'



any advise would be much appreciated as i am new to jquery and its quite a learning curve

many thanks


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend