How to open Modal list form in SharePoint 2013

Hi,
in SharePoint 2010 the following opens a new item form in a Modal dialog, but in SharePoint 2013 it opens the form in a new window:
<input onclick="javascript:NewItem2(event, &#39;http://intranet.pcycnsw.org.au/activities/pcycbrandedprograms/toipadmin/Lists/Courses/Item/newifs.aspx&#39;);javascript:return false;" type="submit" target="_self" value="Add a Course"/>
In SP 2010 you get a nice pop up modal dialog and the user doesn't leave the page they launched the dialog from.
In SP 2013 the same code works, but doesn't open the form modally - instead it opens the form in a full page.
What is the equivalent method for SP 2013 so that I can get the form to open in a modal pop up like in SP2010?
Mark

Hi Kelly
You can run this javascript line from the modal:
window.top.location.reload();
or
parent.location.reload();
Please mark it as helpful if it helps you solving your problem
Amit Kotha

Similar Messages

  • How to add .js link in custom list form through sharepoint designer 2013

    hi friends
    so far i was adding jquery code to script editor webpart in custom list form.
    but i need to know how to add .js link in custom list form through sharepoint designer 2013
    please help me.

    Hi,
    We can add the "JS Link Property" in the “WebPart” node in the custom list form page through SharePoint designer 2013.
    Here is an example for your reference:
    <JSLink xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">~site/Style Library/js/custom.js</JSLink>
    Noticed that, we should not lose the 'xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm' attribute.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to Enable Anonymous access to a SharePoint 2013 site e.g for specific site,list etc..

    Hi All,
          I'm working on an extranet and i would like users to be able to fill a form on the site.
    Since i'm going to use sharepoint 2013 how can i configure sharepoint to use both anonymous access and windows authentication at the same time.
    I know for sure it can be done but what can be allowed for anonymous access e.g specific list site etc..
    I would need to make some area available as anonymous e.g a whole site as  i would like to brand it a little to host the form.Any tips of who has configured similar would be appreciated

    Hi Patrick,
    Thanks for posting your query, Kindly follow the below mentioned steps to enable Anonymous access to a SharePoint 2013 site.
    In Central Administration, under Application Management., click Manage web applications.
    Select the web application you want to enable anonymous access for.
    In the Security group on the ribbon, click Authentication Providers.
    In the Authentication Providers dialog box, under Zone, click Default.
    On the Edit Authentication page, select the Enable anonymous access check box.
    Click Save.
    Close the Authentication Providers dialog box.
    Also, browse the below mentioned URLs for more details
    http://blog.cloudshare.com/2012/10/15/how-to-enable-anonymous-access-to-a-sharepoint-2013-site/
    http://www.sharepoint-journey.com/how-to-enable-anonymous-access-in-sharepoint-2013.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to add List view to SharePoint 2013 app

    Hi
    I'm developing intranet metro style app as SharePoint 2013 auto hosted . i need to get promoted list to display in my app page as it is display in SharePoint host site. i have seen some blog post but no clue of detail way of doing it (http://www.greggalipeau.com/2013/12/25/adding-list-views-to-sharepoint-2013-apps)
    Can any one let me know how to do this in a way steps to follow or any information on this highly appreciated.
    Kind regards
    Radika 

    http://newscarrouselapp.codeplex.com/ Download sample
    http://nettitude.wordpress.com/2013/01/27/creating-a-carousel-in-a-sharepoint-app-using-client-side-rendering/
    http://webcache.googleusercontent.com/search?q=cache:t4nEmPtXxtQJ:sp2013.blogspot.com/2012/08/use-list-view-in-sharepoint-2013-apps.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-a
    <WebPartPages:WebPartZone runat="server"
    FrameType="TitleBarOnly" ID="full" Title="loc:full" >
    <WebPartPages:XsltListViewWebPart ID="XsltListViewWebPart2"
    runat="server" ListUrl="Lists/SlideShow" IsIncluded="True"
    NoDefaultStyle="TRUE" Title="Slideshow Images"
    PageType="PAGE_NORMALVIEW" Default="False"
    ViewContentTypeId="0x">
    </WebPartPages:XsltListViewWebPart>
    </WebPartPages:WebPartZone>

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • How to open modal popup using javascript in iPad ?

    Hi Apps masters
    How to open modal dialog ?
    How to return selected value to parent value ?
    How to close modal dialog ??
    Thanks,

    Hi,
    Try This
    function aboutOkButton(event) {
    var v= event.getSource();
    var popup = v.findComponent("popupId");
    popup.hide();
    event.cancel();
    Sameh Nassar

  • Cannot view InfoPath Form on SHarePoint 2013 since I removed SkyDrive for Business and installed OneDrive For Business

    I removed SkyDrive for Business and installed OneDrive for Business on my laptop. After that, I had problems opening a Word and Excel document in a SharePoint site (SP2013). After installing Service Pack2 from Office2010, this problem is solved. 
    But I still have the same problem with InfoPath. Whenever I click an InfoPath form (I have InfoPath 2010 on my laptop),...
    ... I get the error "cannot display web page".
    When I change the URL 
    ms-infopath:ofe|u|http://intranet.water-link.be/samenwerken/awwit/Autorisaties/Gebruikersbeheer/2015-02-25%20Aanvraag%20gebruikersbeheer%20voor%20Stephanie%20Geeraerts.xml
    into
    http://intranet.water-link.be/samenwerken/awwit/Autorisaties/Gebruikersbeheer/2015-02-25%20Aanvraag%20gebruikersbeheer%20voor%20Stephanie%20Geeraerts.xml 
    I can open the InfoPath form and read it.
    Any ideas about how to fix this ? I already tried to restore the Office 2010 via Control Panel - Install Programs but without any success... 

    Hi Gert,
    As I understand, you can’t open InfoPath form in SharePoint 2013 unless you change the URL without “ms-infopath:ofe|u|”.
    There are some reasons which maybe cause this issue, and you can try to do things below:
    Access CA -> General Application Settings -> Configure InfoPath Form Service -> Check the two options in User Browser-enabled Form Templates.
    Go into the registry by typing regedit from the Run line and rename the SharePoint.OpenDocuments.5 key (ex. SharePoint.OpenDocuments.5.old) under HKEY_CLASSES_ROOT.
    In library settings, click "relink documents to this library".
    Here are some similar posts for your reference:
    http://blogs.technet.com/b/office_integration__sharepoint/archive/2014/02/24/quot-the-webpage-cannot-be-displayed-quot-when-trying-to-open-edit-an-office-file-from-a-sharepoint-2013-site.aspx
    http://www.infopathdev.com/forums/t/28998.aspx
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SSIS List Adaptors for SharePoint 2013

    Was wondering if anyone is using the SSIS SharePoint List Adapters with SharePoint 2013 ?  We are interested in using them, but wasn't able to get information on support for SharePoint 2013 and the api's used (ASMX vs WCF web services). 
    https://sqlsrvintegrationsrv.codeplex.com/documentation
    https://msdn.microsoft.com/en-us/library/hh368261.aspx
    Thank you in advance for any help. 
    Tom
    Tom H.

    Hi Tom,
    Based on my test, we can use SSIS SharePoint List Adapters for SharePoint 2013.
    The following steps test in my environment are for your references:
    Download and Install SharePointListAdaptersSetup.msi or SharePointListAdaptersSetup_x86.msi.
    Right-click the SSIS Toolbox pane to Refresh Toolbox, then we can see SharePoint List Source and SharePoint List Destination under Common group.
    Create a SharePoint connection as SharePoint Credential in the package.
    Double-click SharePoint List Source or SharePoint List Destination to open the dialog box.
    Select the SharePoint Credential as Connection Manager in the Connection Managers pane.
    In the Component Properties pane, paste the URL for the SharePoint site into the SiteUrl (exclude anything from the word Lists onward in the URL)
    Example: if your SharePoint site URL for Lists is
    http://sp2k13/sites/report/Lists/11/AllItems.aspx
    then type http://sp2k13/sites/report as SiteUrl, type 11
    as SiteListName, type All Items as SiteListViewName.
    Finishing the mapping in the Column Mappings pane.
    The following screenshot is for your reference:
    Reference:
    How To Use a SharePoint List as a Data Source in your SSIS Package
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Uploading 2010 Infopath Form to Sharepoint 2013

    Hello,
    I uploaded a Infopath 2010 form from my Sharepoint 2010 website to my new Sharepoint 2013 website.
    I get the following editing message under my form title: Last modified at (todays date with time) by admin (Edit this Page)
    How can I deactivate this feature or is this a feature? If not what is it and how can I get rid of it ?
    Please help,
    Kind regards, Ali Tozlu

    Hi,
    According to your post, my understanding is that you got last modified message when you upload a InfoPath 2010 form.
    How did you upload the form from the SharePoint 2010 site to SharePoint 2013 site?
    Could you give more information about this issue?
    I tried to reproduce the issue with the following three methods, and in the library I not got the last modified message with the form.
    1.Use the “Open with Explorer” method.
    I opened the SharePoint 2010 site library in explorer which contained the InfoPath 2010 form, and opened the SharePoint 2013 site library in explorer.
    Then I dragged the InfoPath 2010 form to the SharePoint 2013 site, the form upload without the last modified message.
    2.Upload the form using the URL
    In SharePoint 2013 site library, I clicked the “New dcument”->Browser->typed the URL of the SharePoint 2010 site library which contained the InfoPath 2010 form.
    The form also upload without the last modified message.
    3.Downloaded the InfoPath 2010 form to local computer, then uploaded the form to SharePoint 2013 library, the form upload without the last modified message.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?

    Hi,
    I have created custom action for Share functionality in document library.
    On Share action i'm showing Model pop up with Share form with addition functionality.
    I am developing custom share functionality because there is some addition functionality related to this.
    How to Implement custom share functionality in SharePoint 2013  document Lib pro-grammatically?
    Regards,
    - Siddhehswar

    Hi Siddhehswar:
    I would suggest that you use the
    Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
    as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
    We customize <Edit> Ribbon. As shown below.
    When user click <Edit Item>, the system will
    render customized pop up window.
    Will

  • How to create a Document Set in SharePoint 2013 using JavaScript Client Side Object Model (JSOM)?

    Hi,
    The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
    But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
    below my code. I am using Content editor web part and attached my JS file with that :-
    <div>
    <label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
    <input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
    </div>
    <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
    <script type="text/javascript">
       SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
    // This function is called on click of the “Create Document Set” button. 
    var ctx;
    var parentFolder;
    var newDocSetName;
    var docsetContentType;
    function CreateDocumentSet() {
        alert("In ClientContext");
        var ctx = SP.ClientContext.get_current(); 
        newDocSetName = $('#txtGetDocumentSetName').val(); 
        var docSetContentTypeID = "0x0120D520";
        alert("docSetContentTypeID:=" + docSetContentTypeID);
        var web = ctx.get_web(); 
        var list = web.get_lists().getByTitle('Current Documents'); 
        ctx.load(list);
        alert("List Loaded !!");
        parentFolder = list.get_rootFolder(); 
        ctx.load(parentFolder);
        docsetContentType = web.get_contentTypes().getById(docSetContentTypeID); 
        ctx.load(docsetContentType);
        alert("docsetContentType Loaded !!");
        ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
    function onRequestSuccess() {       
        alert("In Success");
        SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
        alert('Document Set creation successful');
    // This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args) {
        alert("Document Set creation failed" + + args.get_message());
    Please help !!
    Vipul Jain

    Hello,
    I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
    Value cannot be null.Parameter name: context"...
    Also, I tried removing SP.SOD.executeFunc
    from my code, but no success :(
    Kindly suggest !!!
    Vipul Jain

  • Create search refiner for list name in sharepoint 2013

    Hi everybody!
    How could I create a search refiner for list name in SharePoint 2013?? I think I can create a search refiner for list ID but how could I show list name base on list id to users in refinement webpart??

    you can create your custom Manged property and use content enrichment to fill the managed property 
    http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/06/19/advanced-content-enrichment-in-sharepoint-2013-search.aspx
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Hide view links in list view in sharepoint 2013

    Hi
    How I can hide view links in list view in sharepoint 2013. Like below pic?
    Thanks.

    for that you can use id of its parent span element something like below.
    #WPQ2_ListTitleViewSelectorMenu_Container {
    display: none !important;
    Thanks.

  • Anonymous User forms in Sharepoint 2013 Online (Office 365)

    I'm using Sharepoint 2013 online with Office 365.
    Is there any way for an anonymous user to communicate with the site using forms (preferably Infopath)?
    There are many, many versions of this question on the web, but most answers seem to talk about features I just don't have in Office 365 Sharepoint - such as Application Management in Central Administration, which just isn't there.
    The only feature I can find is the Excel Survey in Form Templates. This is at least a start, but what I really want is the ability for an anonymous user (a customer) to submit information into a Custom List using a form; or, second best, in an email (WITHOUT
    having to have Infopath Filler installed). this is all do-able for a fully-subscribed user of the intranet site, but I can't afford to buy individual subscriptions for all my customers. Nor do I want them seeing each other's data, or accessing my intranet!
    I have spent so long researching this and getting nowhere, and really need to know if it's just a straight 'no, it's impossible', or keep trying.
    Thanks
    Jonathan

    Hi Jonathan,
    According to your description, my understanding is that you want to enable anonymous user with forms in SharePoint 2013 Online.
    There is a Sandbox solution from CodePlex, it manages anonymous access on Office 365 / SharePoint 2013. Please have a try.
    https://anonymous365.codeplex.com/
    In addition, I am not an expert for SharePoint 2013 Online, I suggest you create a new thread on SharePoint Online forum, more experts will assist you with SharePoint Online.
    SharePoint Online forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to deploy SSRS 2008 reports to Sharepoint 2013.

     Hi,
       Can some one guide me how to deploy SSRS 2008 reports to SharePoint 2013 by giving the exact steps from where to begin. We have all our reports deployed in SharePoint 2010.Need to migrate those reports to Sharepoint 2013 instance. I
    also want to know how and where exactly we modify the connection strings to manage the data sources for the reports . Since I am very new to this field I am not able to properly understand other sites i have gone through . I have gone through the prerequisites
    also.Kindly help me by providing step by step method.
    Thanks,
    Mridhula

    If you don't just want to upgrade your database, simply open the report project (which should be on your local file system) and edit the report properties, changing the Report Server URLs appropriately to the new SharePoint server URLs.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for