Detect what the default edit form is for a document library and list using jquery

Hi,
So what I have done is with some jquery made it that when a files are dragged and dropped into a document library and there is a required field such as "Metadata" the EditForm.aspx opens up for the user to fill in the required column. I am building
the url up from what I have found in SharePoints DragDrop.js file. This is all working perfectly I just need to find a way to dynamically find what the default edit form is for that document library as I have just hardcoded like this...
g_currentControl.strSiteUrl + "/" + this.ListName + "/Forms/EditForm.aspx?ID=" + id
So I need a way to figure out what the default edit form is instead of hard coding like this in case someone creates a custom_editform.aspx or something for one of the lists.
Thanks

You can get it by hitting this REST end point via JQuery:
http://weburl/_api/Web/Lists(guid'YOURLISTGUID')/Forms
Chris Givens CEO, Architecting Connected Systems
Blog Twitter

Similar Messages

  • TS2845 does anybody have any idea what the default parental passcode is for apple tv

    i can't remember what the passcode is for apple tv. does anyone  know what the default code is?

    I don't believe there is a default, you need to enter a code to enable parental control. if you've forgotten it, you'll need to restore.

  • HT1212 wondering what the default pin code is for the sim as i only have 1 attempt left.  I have an iphone 5S

    as the title says.  I have just bought a new iphone 5S and somewhere in it there is the option to change your sim pin.  wondering what the default pin
    is?

    buzzburow wrote:
    as the title says.  I have just bought a new iphone 5S and somewhere in it there is the option to change your sim pin.  wondering what the default pin
    is?
    There isn't one.
    Settings > Phone > SIM PIN.

  • How to find out what the geniric short forms stand for?

    Hi if you see the ThreadLocal class in jdk1.6 it is written like this in doc. ThreadLocal<T> and if you see the method Class.forName() the return type is Class<?> i am just confused a littele bit. how to find out what this <T> and <?> stands for? I mean how do i know that what to pass in their place?

    [Start from Here|http://java.sun.com/docs/books/tutorial/extra/generics/index.html]

  • Unable to find the default new form for list mylist1 - deploying the list instance via module feature

    hi,
    am facing a problem deploying a list instance via a feature, 
      I created the list in the UI with content and views.
    Exported the site template as WSP.
    Imported into Visual Studio the list instance, pages module and property bags.
    Copied into my new solution.
    Deploy list instance as a site-collection level scoped feature.
    activated the below features :
    mylist_ModulesFeature
    mylist_ListInstancesFeature
    mylist_PropertyBagFeature
    List deploys fine with content and views. However, I receive the following error when trying to add a new item: “Unable to find the default new form for list”. The same applies for editing items.
    can anyone pls help why i am getting this  error ?

    try these links:
    http://tomvangaever.be/blogv2/2010/04/unable-to-find-the-default-new-form-for-list/
    http://sharebrad.blogspot.in/2012/08/unable-to-find-default-edit-form-for.html
    http://stackoverflow.com/questions/10243131/deploying-a-list-instance-to-sharepoint-2010-error-unable-to-find-the-default-n
    https://happiestsharepointminds.wordpress.com/2014/03/01/unable-to-find-the-default-edit-form-for-list-or-unable-to-find-the-default-display-form-for-list/
    http://itsolutionsblog.net/sharepoint-problem-with-library-forms-unable-to-create-folder-ore-edit-properties/
    http://blogs.technet.com/b/yashgoel-msft/archive/2013/08/30/recreating-default-display-edit-and-new-forms-of-a-list-in-sharepoint-2010-using-powershell.aspx
    Please mark answer as correct if it is correct else vote for it if you find it useful

  • What is the default iTune Folder Structure for iTunes 10?

    What is the default iTune Folder Structure for iTunes 10? As far as I can tell in windows 7 it goes something like.
    My Music\iTunes\iTunes Media\Music
    Other folders for downloads, pod casts, mobile applications are all in the iTunes Media folder, however the iTunes library database files are located in the iTunes Folder.
    The reason I ask is that I am re-doing my music collection and I set up the folder structure mentioned above, but iTunes re-arranded everything and copied all of my music into the iTunes Media folder.
    Anyone have any idea how iTunes does it by default?

    Here are typical layouts for the iTunes folders:
    If you have upgraded from version 8 (or earlier) to iTunes 9 (or later) at some point, then your media folder (everything inside the red outline) may still be called iTunes Music instead of iTunes Media. The extra Music folder inside the media folder is used if you have allowed iTunes to Upgrade to iTunes Media Organization (iTunes 9) or used File > Library > Organize Library > Reorganize files in the folder "<Media Folder>" (iTunes 10). Depending on your choices for Keep iTunes Media folder organized and Copy files to iTunes Media folder when adding to library plus a little bug in which one build changed the name of the file storing the choice of layout it is quite easy for some of your files to be organized according to one layout and some the other.
    Assuming you're happy letting iTunes organize your files the following steps should tidy things up (should it be necessary):
    1. Select File > Library > Organize Library... > Tick Reorganize files in the folder "<Media Folder>" and click OK. Skip if this option is greyed out (already upgraded) or you prefer the older layout.
    2. Select File > Library > Organize Library... > Tick Consolidate files and click OK. This will bring any files currently organised outside the designated media folder into it.   NB This will create duplicate copies of any file that needs to be consolidated, and you will need to manually clean up afterwards. If space is at a premium try my scripts Unconsolidated to find out what would need moving and ConsolidatebyMoving to move rather than copy it.
    3. Select Edit > Preferences > Advanced tab, uncheck Keep iTunes Media folder organized and click OK.
    4. Select Edit > Preferences > Advanced tab, check Keep iTunes Media folder organized and click OK. This triggers iTunes into reorganizing everything according to your preferences.
    5. (Optional) Close iTunes, rename the folder iTunes Music as iTunes Media then restart iTunes. Check under Edit > Preferences > Advanced tab that the location has automatically updated. If you can't access the media for any reason just undo the folder rename.
    6. (Optional - Windows only) If Windows Media Player has ever had access to your files it may have liberally scattered folder artwork files about which iTunes won't tidy up when it reorganizes things, thus leaving behind a heap of folders with artwork and no media. I've written a script for cleaning this mess up called CleanDeadArt.
    PS If you really prefer the older layout, but it is already in the new one then edit the file called .iTunes Preferences.plist in your media folder and change the integer from 1 to 0 before doing step 3.
    tt2

  • How do I make Photoshop the default Edit App for .jpg in Windows 7?

    How do I make Photoshop the default Edit App for .jpg in Windows 7?    I want to be able to right click on a .jpg file, select the EDIT option in the Context Menu, then have Photoshop edit the file instead of Paint.
    In Windows XP it was very easy to use the File Manger to associate the file type .jpg and action edit with Photoshop.    No so easy in Windows 7.  It is easy to change the default OPEN application, but I would like to leave Windows Viewer as the default OPEN application and have Photoshop as the EDIT applicaiton.

    Before I posted the original question here, I had probably spent a couple of hours trying to research it.   I hate to find no answer for something I know can be done.   So I spent some more time and found the following in the bowels of a Tech Forum that is generally way over my head.  I have modified it to be Photoshop specific.
    These instructions will update the default EDIT action for image types - jpg,png,gif and the variations.     If you are unfamiliar with editing the program registry you probably will want to back up your registry or take a system backup.
    1. Open up the registry editor (Regedit.exe).
    You will need to be signed on as a Windows user that is an administrator
    2. Find HKEY_CLASSES_ROOT -> SystemFileAssociations -> image ->  shell -> edit -> command
    This seems like it would be easy but it is not, because there are many key names that are very close (like System.FilesAssociations).   Keep looking because you will find it eventually. 
    3. Double click on "Default" (on right window pane) and update the program location.
    You should see that MSPAINT.EXE is the current program.
    Erase the existing value and enter you photoshop location in quotes followed by %1 in quotes.  For me this is "C:\Program Files  (x86)\Adobe\Adobe Photoshop CS4\Photoshop.exe" "%1"  
    Hit return.
    4.  Exit Regit and test.

  • Does anyone know what the default font is for MacMail?

    Does anyone know what the default font is for the Mail program? My son changed my mail font and I want to change it back, but I can't remember what the original default is! Anyone? Thanks!

    I rarely use Mail (normally use Gmail in Safari) so I am 99.99% sure mine is still at the default. It is Helvetica 12.

  • What is the default password in iphone4 for restoring factory settings

    how can i reset my iphone4..... can i know the default password in iphone4 for restoring factory settings

    kiran666, iOS devices will ask for a password if either you have set a screen-lock password OR you or your parents have set a restriction password. If you cannot get this password, and you have "find my iphone" turned on, use the "whip" option. It will reset to it's factory settings. If you do not, I suggest you do what KiltedTim suggested and put your iPhone in DFU mode or restore mode by simply holding home and power until the restore icon appears on the phone and restore using iTunes.

  • Changing the default edit icon of interactive reports

    Hi,
    I have tried to look around to find a place to set the default edit icon of interactive reports and I cant seem to find it.
    Another thing is: What would be the best practice to change the icon to a new image that is NOT part of the apex installation? Right now we have 8 icons to choose from, which are all located in apex image library. Its not even located in the theme. So if I just overwrite the current default icon it would be overwritten again next time I upgrade apex.

    bjarkekr wrote:
    Another thing is: What would be the best practice to change the icon to a new image that is NOT part of the apex installation? Right now we have 8 icons to choose from, which are all located in apex image library. Its not even located in the theme. So if I just overwrite the current default icon it would be overwritten again next time I upgrade apex.I would apply an override using CSS.
    Create a style sheet and include it in all required page templates:
    .apexir_WORKSHEET_DATA td[headers="LINK"] a img {
      display: none;
    .apexir_WORKSHEET_DATA td[headers="LINK"] a:link,
    .apexir_WORKSHEET_DATA td[headers="LINK"] a:visited {
      display: block;
      /* Change dimensions to size of your icon */
      height: 18px;
      width: 18px;
      /* Change URL to location of your icon */
      background: transparent url(/i/ws/small_page.gif) no-repeat;
    }This removes the edit icon specified in the IR attributes and replaces it by showing whatever icon you want as a background image on the link element. This allows you to change the icon universally for all IRs by making a simple change to the dimensions/background image URL in one place.

  • Changing the default logical system names for adaptive RFC models

    Hello,
    When I create an Adaptive RFC model the dialog that asks me to specify the model name, package, source folder, etc. has default values in the "Default logical system name for model instances" and "... RFC metadata".
    I know I can type in another name there but I'd like to change the default name to something that fits our naming conventions. Can I change that? If so, can someone tell me where?
    Thanks in advance!
    David.

    Suresh,
    Thank you for your response. However, that is not what I was looking for. Sorry if my post was not clear.
    I knew that I could change it AFTER the import. I also know that I can type in something else besides the default DURING the import.
    What I am asking is if there is a way to change some configuration setting so that the 'default' that comes up in the drop down DURING the import is something different than what comes 'out-of-the-box' with NWDS.
    Hope that clears up what I'm looking for.
    David.
    Message was edited by:
            David Z. Pantich

  • What happends when you give 2 groups with some of the same members different authorizations for a document

    Hello,
    I'm doing my internship at a litte Telekom company. I'm investigating how they can use MS SharePoint as their central place to put projectinformation. Now i've been thinking what happends when i do the following:
    Make one document library
    Add 2 groups to the Active Directory, group "A" with all the employees and group "B" with only four people working on a project. When i add a document to the document library and set the authorizations for the document as
    follows:
    Group B: Read/Write
    Group A: Read
    Does the people from group B still be able to edit the document, because they are also in group A?
    I don't have a test environment to test this myself.
    Why i want to know this? The company want's one place to place all their documents with projectinformation. This information is about different projects. You only wan't that people can change the specific document when they are working on the specific project
    where the document belongs to.  

    You get the union of permissions, so if one group allows access and the other not, you will get the union of both and therefore access. Of course, you can break security settings per library/folder or document, and specify new settings,
    if you need too.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Please can you tell me the default maximum file size for an attachment in Case Management v12 ?

    Hi,
    Please can you tell me the default maximum file size for an attachment in Case Management v12+? I am able to define a maximum attachment size but I am not able to see what the default is set to.
    Thank you
    Regards,
    Anthony

    Hi,
    The default max attachment size is 8MB.
    Regards.
    Mike

  • The default value as "None" for the report filter which is Value List type?

    Hello,
    I want to know is it possible to make the default value as "None" for the report filter which is Value List data type?
    For example:The Project Classification Value List value type which have many value like "Supplier Rationalization" "Category Sourcing" "Contract Regegotiation" etc, and the value "Supplier Rationalization" is in the frist positon in the value list. When i use "Project Classification " as a report filter, the value "Supplier Rationalization" displayed as default value. And in the value list box in report filter of Project Classification , there is a value "None" which should be added automatically by system. So i manually filled the default value with "None" in Filter Prompt screen, but it does not work. After i display the report ,the Project Classification filter still use the ""Supplier Rationalization" as the default value.
    My current ESO version is 5.1. I tried other ESO version like 5.15, if i manaully give a default value "None" in Filter Prompt screen for filter Project Classification, then the default value is "None". It works well.
    Does anybody know if it's possible to do the same thing in ESO 5.1?
    Thanks & Regards,
    David
    Edited by: David Gao on Aug 11, 2010 4:06 AM

    Hi David -
    This is possible, but the technique is not too obvious...
    To make "None" be the default choice for a query definition filter parameter of type value list type, you need to set the default value of the filter parameter to the following:
    <internal id of value list type>:616:NULL
    For example, I believe you will see that the internal id of the Project Classification value list type is 51, so the default value of the filter parameter would be:
    51:616:NULL
    I hope this helps.
    Regards,
    Rob

  • How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English

    How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English
    == This happened ==
    Every time Firefox opened
    == From the beginning

    Some add-ons:
    Default FullZoom: https://addons.mozilla.org/en-US/firefox/addon/6965 (I use this one)
    No Squint: http://urandom.ca/nosquint/
    Also:
    http://support.mozilla.com/en-US/kb/Page+Zoom
    http://support.mozilla.com/en-US/kb/Text+Zoom
    http://kb.mozillazine.org/Browser.zoom.siteSpecific

Maybe you are looking for

  • Help! Acrobat XI Pro for MAC doesn't see my HP 4780 scanner.

    I know the scanner part of my HP C4780 works, both with Windows Acrobat 9 Pro and with all the other scanning functions on the Macbook Pro. I don't know what to do. This is one of the major functions I use Acrobat for, and now I can't get it to work.

  • JVM Error 102

    My phone has got a white screen with JVM Error 102 showing.  I have tried rebooting, taking battery out and leaving etc but not worked.  Apparently I can link up my phone using usb to laptop and do a fix but I am unsure how to go about this.  Can any

  • Mobile Hotspot Issue after 10.1 Update

    Hello, just wondering if there is a know issue with using mobile Hotspot after update z10 to 10.1. After this update was installed Mobile Hotspot will turn on but past network that I had created is not there anymore, also I cannot configure, when I p

  • Default Podcast library change - Finder level.

    I have a growing Podcast library that updates and downloads daily. I would like to change the default location from the main hard drive to a larger, external hard drive. In other words, I would like all the new episodes to default to the new external

  • H264 to m2v

    Hi guys. That's my first port here. Situation. I've got BluRay disk from client that has to be transfered to PAL DVD. I demuxed BluRay disk to mkv, then extracted video track with MPEGStreamClip. Everything looks top notch. Video is in H.264 1920x 80