Jquery not fired on List display or edit forms in SharePoint 2013

I have put the below code in List Display form. But I am not getting the alert. It used to work in 2010. After migration to 2013 it is not working although it works fine for all other pages. The jquery reference is on the master page.
<script type="text/javascript">
$(document).ready(function(){
alert('Jquery');
</script>

Hi ,
According to your description, my understanding is that your Jquery code didn’t work in SharePoint 2013 list display form.
Please use IE Developer Tools(F12) to check whether there is a .js file like the screenshot:
If not, you need to add a reference from Jquery class library like <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>.
If this issue still exists, please use the following code to test:
<script type="text/javascript">
function show_alert()
alert("Test!");
_spBodyOnLoadFunctionNames.push("show_alert")
</script>
A similar post for your reference:
http://sharepoint.stackexchange.com/questions/54125/why-does-jquerys-document-ready-not-fire
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support

Similar Messages

  • Form load rules are not working on display and edit forms

    Hi
    I have customized SharePoint 2013 list form using InfoPath 2013. I want to hide certain fields based on user group. I created rules on form load for that. These rules are working fine on New Form but are not working on display and edit form.
    What can I do?

    It could be because the value might have not changed ie, you might be checking for a particular value, the values might have got overwritten when the new form is saved, see if that value is blank or overwritten in display and edit forms.
    I would first check the form load rules and check those values again in Display form and edit form, if the values are not getting cleared/overwritten.
    It would be better if you could upload the screenprint.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Can i set site page as New/ Edit form of SharePoint list?

    Hello All,
    Can i set site page as New/ Edit form of SharePoint list. I know this can be done if i create Application page, but can i set site page as SharePoint list form. If yes, then how?
    Also in any case is it possible to set New/Edit form of already created SharePoint list?
    Please Help. Thank you.

    You can set infopath form on a page
    http://office.microsoft.com/en-in/sharepoint-server-help/convert-an-infopath-form-to-a-web-page-HA010215035.aspx
    Try 
    http://sharepoint.stackexchange.com/questions/70287/display-new-form-of-a-list-in-a-web-part-page
    So it turns out that SharePoint Designer is the only way to accomplish this. You have to go into the page in Designer, edit the page, and select the Insert tab from the ribbon -> New Item Form -> select "CUSTOM LIST FORM..." (not one of the pre-populated
    lists or you will get the barebones default content type!) -> Choose the list for the form you want to show and the content type, click OK -> Save the page in SP Designer and it will now show on the page embedded as a form. Success!
    OR 
    http://sharepoint.stackexchange.com/questions/66046/customize-form-new-wiki-page

  • Is there a way in install a trial version of Project server on a Licensed edition server of sharepoint 2013?

    Is there a way in install a trial version of Project server on a Licensed edition server of sharepoint 2013? Is there anyway around this or do I need to make a new box all trial versions to test this out?
    Thanks
    James T.F

    James,
    Yes, it is possible , however I wont recommend to do it. Since, once Project trial period expires  you need to uninstall project server which can not be done without uninstalling SharePoint. Unless you are willing to rebuild the farm once your
    testing is completed
    Hrishi Deshpande
    Senior Consultant

  • Display look up column as drop down list in a web part in SharePoint 2013

    Hi,
    I have a look up column in SharePoint 2013 calendar list.I want to show that field with values in the page as drop down list to filter the data based in selected value.
    Is it possible through OOB or javascript.
    Please help .
    Thank you.

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Show list fields side-by-side when New/Edit/View in sharepoint 2013

    It is possible to show fields in customized view for fields in a list? OOB feature show all columns one after one. But
    I want to show user customized way. like see below image
    Is possible to do in Sharepoint 2013 foundation?. Any developed feature available?
    ItsMeSri MOSS SP2, 3 WEFs, Windows 2008 R2 x64.

    Someone's developed a way to do it through JQuery - I've done it for a single list - it's time consuming to set up but works perfectly. One text file that has the table structure you want to see, then another with a small JQuery function.
    See http://www.markrackley.net/2013/08/29/easy-custom-layouts-for-default-sharepoint-forms/
    The table includes spans that reference the actual column display names - an example row:
    <tr >
    <td>
    <b>Title:</b><br>
    <span class="FMGCustomForm" data-displayName="Title"></span>
    </td>
    <td>
    <b>Issue Status:</b><br>
    <span class='FMGCustomForm" data-displayName="Issue Status"></span>
    </td>
    </tr>
    and the JQuery moves the column from the original location to the correct span. Nice and quick - even on a list with many columns.
    <style type="text/css">
    .ms-formtable
    {display:none;}
    </style>
    <script type="text/javascript">
    $(document).ready(function() {
    //loop through all the spans in the custom layout
    $("span.FMGCustomForm").each(function()
    //get the display name from the custom layout
    displayName = $(this).attr("data-displayName");
    elem = $(this);
    //find the corresponding field from the default form and move it
    //into the custom layout
    $("table.ms-formtable td").each(function(){
    if (this.innerHTML.indexOf('FieldName="'+displayName+'"') != -1){
    $(this).contents().appendTo(elem);
    </script>
    Robin

  • How to display the edit form(xml form builder ) in the iview

    Hi all ,
    i'm doing one appication in xml formbuilders . i cerated a form and i call that form into a folder in documents of content manager. i  able to dispaly the show  form . now i want to edit the content of the from through portal iview . i tried using KM navigation portal .but i am able to diaplay the edit form .
    can any one tell me how to do this
    thanks
    rajeev.

    You need the right UI command. Look into the delivered NewsExplorer and NewsBrowser Layout Sets. http://help.sap.com/saphelp_nw70/helpdata/EN/6a/e8df3dffadd95ee10000000a114084/frameset.htm

  • InfoPath Filler 2010 will not open a form in SharePoint 2013

    I'm having a problem with the coexistence of SharePoint 2013 and Office 2010, specifically InfoPath.
    We are running SharePoint 2013 Standard, so we do not have access to web-enabled InfoPath forms, which is okay since all of our client machines have InfoPath Filler as part of their Office 2010 install.
    The problem is I have created a form and published it to a SharePoint 2013 library but when I try to create a new document in the library I get a page cannot be displayed error or the page just hangs. 
    However, as a troubleshooting step, I installed InfoPath 2013 on my client machine and when I access the library and create a new document it opens the form successfully. 
    I've changed the settings of the library so it uses the client application instead of trying to open in the browser, I've changed the trust settings to every possible configuration I can think of but I cannot get InfoPath 2010 to open a form published to
    SharePoint 2013.
    Is this a known compatibility issue, a bug, or am I missing something?
    Thanks,
    Kevin

    I encountered this issue recently. Some of our suers have upgraded to Office 2013 but a lot still are on office 2010. I did not want a solution that relied heavily on the users to do something, like upgrade to 2013 or modify 2010. That's not ideal.
    I realized the solution was very simple. I edited the InfoPath template within the document library in sharepoint > Form Options > Compatibility, change it to InfoPath filler form 2010. It still works for me and I have version 2013, so now it allows
    users with older versions to use it as well. I confirmed with the affected users that they can now access the form.

  • Possible to fill a list using a custom Workflow in Sharepoint 2013

    Is it possible to develop a custom workflow that compares a Contact List and the Active Directory and add any missing people to the list? Or is this a functionality not available with workflows and sharepoint 2013?

    Instead of workflow you can do this,
    Have user profile service application set up ,which will run on daily basis by default(you can configure to run Hourly/Minutely also) to import all users along with user attributes(email, department ..etc) to SharePoint. Configuring  UPS :
    http://blog.anuragg.com/2012/12/configure-user-profile-service.html
    Create an item added event receiver on your "Contacts" list ,build business logic to fetch the corresponding  user details from the above synced user profile properties. Retrieving User profile properties :
    http://msdn.microsoft.com/en-us/library/office/jj163182(v=office.15).aspx
    Please remember to click Mark as Answer on the answer if it helps you

  • Аdding department export data from a survey list from user profile services in Sharepoint 2013.

    When voting, survey Sharepoint 2013, there is a field created by whom. But the name is not enough. Necessary to add the department name of the profile data in the exported list excel.

    Hi,
    The OOTB feature “Export to Spreadsheet” won’t contain the department in the exported report, we will need to create a custom one programmatically.
    We can use SharePoint Object Model to retrieve the data from the Survey and the User Profile Service, then generate an Excel Spreadsheet with the data we need.
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    More information about
    SharePoint Object Model:
    http://msdn.microsoft.com/en-us/library/ms473633.ASPX
    How to: Work with user profiles and organization profiles by using the server object model in SharePoint 2013
    http://msdn.microsoft.com/en-us/library/office/jj163142(v=office.15).aspx
    For about
    generating an Excel document:
    http://www.codeproject.com/Articles/20228/Using-C-to-Create-an-Excel-Document
    Or you can post another question to
    Excel for Developers for about creating an Excel file programmatically:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Unable to edit documents in Sharepoint 2013

    Hi,
    unable to edit documents in SP2013.while editing getting the following error.Please guide me on this.
    Thanks In advance

    Hi,
    According to your post, my understanding is that only
    one user could not edit documents in SP2013 with OWA.
    You can use compatibility mode to check whether it works.
    Open IE->Tools->Compatibility View Settings
    You can also add the site into Trusted sites.
    Open the
    IE->Internet Options->Security->Sites->add the site into the Websites, then check whether it works.
    What's more, you can also use other browsers to check whether it works, such as Firefox, Chrome, Internet Explorer 10.
    Check whether the user has permission to the documents.
    Here is a link you can use as a reference:
    http://blogs.architectingconnectedsystems.com/blogs/cjg/archive/2012/07/26/Getting-Office-Web-Apps-2013-and-SharePoint-2013-Working-_2D00_-fixing_3A00_-Sorry_2C00_-you-don_2700_t-have-a-license-to-edit-documents-with-Word-Web-App.-Please-get-in-touch-with-your-helpdesk_2E00_.aspx
    If the issue still exists, please feel free to let me know.
    Best Regards,
    Lisa Chen

  • '$P_CRM' is undefined Error while opening Lookup field in Bulk edit form in CRM 2013

    Hi All,
    I am getting this strange error in MS CRM 2013
    When I do bulk edit for any entity , I select 2-3 records and click on Edit , the Bulk edit form opens
    then whenever I clicks on any field which is lookup type It does not open , after debugging with F12 developer tool
    I am getting this error.    "'$P_CRM' is undefined"
    I have MS CRM 2013 on premise , Service Pack 1 Update Rollup 1 installed and using IE 11.
    Any Idea
    Regards,
    Vilas
    Vilas Magar http://microsoftcrmworld.blogspot.com/

    Few questions that might help us to identify issue:
    1. Have you enabled Social Insight  ? If yes can you try bulk edit on entity which don't have social insight enabled and confirm if it repro there?
    For more information on how to enable Social Insight :
    http://technet.microsoft.com/en-us/library/dn659847.aspx
    2. When you close bulk edit form are you getting script error dialog? If yes can you share that error log reports?

  • Show List/Libraries with heading dynamically in SharePoint 2013

    Hi,
    I want to show the all the list under List label and all libraries under libraries in quick launch as in SharePoint 2010.
    I want to achieve this in SharePoint 2013. So the list /libraries should dynamically added to the corresponding group.
    Please help how to do this.
    Waiting for your reply.
    Thank you

    Hi Aditi,
    According to your description, my understanding is that you want to show lists/libraries under the Lists/Libraries label in Quick Launch in SharePoint 2013.
    Per my knowledge, there is no OOB way to automatically add the lists/libraries under the Lists/Libraries label in Quick Launch except manually editing the links in the Quick Launch as Sapara suggested.
    If you don’t want to manually add the links, I recommend to use PowerShell to add the links in the Quick Launch.
    Here is a blog about using PowerShell to add and remove items in the Quick Launch menu on a SharePoint 2013 site for you to refer:
    http://matthewyarlett.blogspot.com/2014/05/use-powershell-to-add-and-remove-items.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • 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

  • Requested registry access is not allowed when opening Infopath Forms on Sharepoint 2013

    Hello Technet Community.
    I hope this will help anybody out there that experienced this problem after patching Sharepoint 2013.
    I have a distributed 3-tier Sharepoint 2013 environment. All of a sudden, after the last round of patched released on 7-Jul-2014, opening Infopath forms would throw a "something went wrong" error.
    Looking at the ULS logs, you would see the error "Requested registry access is not allowed.".
    I have looked at tons of posts on different blogs, and all pointed out that you need to grant "read" permissions to the application pool user (in my case a service account in AD) to the registry key (and subkeys):
    HLKM/Software/Office Server/15.0
    That indeed works, but it is not the proper way to do it. You should grant "read" permissions to this local group:
    WSS_WPG
    And special permissions to this local group:
    WSS_ADMIN_WPG
    Here is a snapshot of the special permissions needed
    By the way, the WSS_PWG local group contains the app pool service account.
    I do not know why patching Sharepoint removed these permissions from the registry keys, but oh well...
    Anyway, Sharepoint is now happy and Infopath forms work as expected.
    Claudio

    Check if your service account or infopath service account has access to server and specially registry
    http://blogs.technet.com/b/spsforum/archive/2011/11/02/quick-solution-5-requested-registry-access-is-not-allowed.aspx
    To solve the issue, please follow these steps:
    Use the Process Monitor to monitor the registry, once you get the following ACCESS DENIED message(You can filter the result with “Result contains Access Denied”):  
    Date & Time:      <date time>
    Event Class:        Registry
    Operation: RegOpenKey
    Result:  ACCESS DENIED
    Path:     HKLM\SOFTWARE\Microsoft\Office Server\14.0
    TID:        2020
    Duration:             0.0000297
    Desired Access:                Read
    Open Registry Editor (Start > Run, type regedit)
    Open key: HKLM\SOFTWARE\Microsoft\Office Server\14.0(got from Process Monitor from step 1)
    Assign the SharePoint Timer Service account the Read permission to this key
    One can open registry using regedit command. In Registery editor go to 
    HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\15\Secure\FarmAdmin
    Check central  administration app pool Identity  have permission on FarmAdmin. Permission can be check on right clicking FarmAdmin --> Permissions.
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for

  • A more Unix-like way to instant message

    I've been using Pidgin for IM'ing and it's working satisfactorily so far. But I want to be able to IM from within a terminal, or from within emacs.   I'm not happy with the emacs jabber client and I do need many more protocls than just that. Is there

  • 10.4.9 is causing me major headaches!

    Last night, I again, tried installing the 10.4.9 Combo Update. It hung at the "100% completed" mark as it had the night before. I went to bed and let it sit there for 8 hours. This morning, the installer was still hung at the same point! And I contin

  • Start up with external Drive connected and switched on

    When starting up with my external USB2 drive connected, it takes ages, I usually resort to switching it off and then back on when my Mac has started. Has anyone got any tips on how to speed up the start up process? Cheers

  • It's greeck to me - Repeted  Sync for same 17 song with greeck names.

    I have 1st generation iPod Touch with 3.0 SW connected to Mac and sync with iTunes 8.2.1. Mac runs Italian OS 10.5.7 and iPod also runs Italian SW. I sync without problem photos, video podcast AdressBook and Calendar and MUSIC BUT.... Songs are divid

  • Absolute table filters

    Hi! I have a table with filtering enabled. My problem is if ex. enter: Test my table shows all rows with "Test" and "Test xxxxx". How can I make it only show the rows with test? /Casper