Tag Info

New answers tagged

0

You will have to write some code here. Create an event receiver. Create a single line of text field and hide it from new and edit forms. In the event receiver, catch the Item Adding event and then update the field. A simple set of code lines.


0

I would probably do it with 2 date columns. One column would be hidden on the form (via management of content types, hide the column) and the default value would be set to today. This would serve as the gold value. Then a second editable date column is available and would default to today, but would be visible so it can be changed.


0

In short, a calculated column won't work for what you want to do. Calculated columns update themselves everytime a list item changes, and you can't use their existing values in the new result (a circular reference). A more applicable solution to your situation is a workflow that runs each time an item is created (you would need to make due date a required ...


0

As you want to show column when user has permission/or(Admin). The Admin column from DispForm/NewForm/EditForm page and AllItems.aspx, etc for the normal users without admin permission you need to hide, and it can be seen by the administrators, these two articles can help, ...


3

You could either change the icon for htm pages in the hive (its ichtm.gif by default ["ic" for icon and "htm" for filetype]) or overwrite it by CSS or JS. Here's a example for plain CSS: img[src="/_layouts/15/images/ichtm.gif"] { background-image: url("http://upload.wikimedia.org/wikipedia/commons/f/f0/Pdf_16x16_Crystal_SVG.png"); height: 0px; ...


0

Make sure you have copied fldtypes_FieldTypeName.xml file to SPHive\TEMPLATE\XML folder.


1

In order to enable SharePoint 2013 default Toolbar please make sure that the following web part properties are set: Toolbar Type (List Views group) is set to Full ToolBar Server Render (Miscellaneous group) is set to False


2

It's the way SharePoint works, it only lets you add some specific columns(can't really remember which ones at the moment) as look-up columns, I had same issue few years ago, only solution I could find it that add a item adding event receiver and change Title column to file's name. There is no other way around I ever came across. Similar post: Lookup ...


0

Apparently, drop down controls cannot do that OOB. But combo or Multiple Selection List boxes can, if you can use one of those instead.


0

This fix doesn't work on a list with pagination as the list items in the extra pages are obtained via ajax, so this doesn't correct the links for the rest of the pages (as the js doesn't run again). You can either get it to run again after someone has clicked to view a different page page buttons (AFTER the ajax has got the data and put it on the page), or ...


1

This is a know issue with "Save Site As Template", this operation is not full fidelity Because as you said you can do it if you add the Site colum from SharePoint (from The U.I) and not from Visual Studio... Here, you can deduct that this issue is related to Visual Studio and What is happening behind the deployment Action... This Problem Has many ...


0

Another way to do this is: Create a visual webpart. Use SPQuery to query the list of choice and display in gridview. To control the sort order you can: Write code in web part to implement custom webpart property. Based on the choice of sort order the SPQuery can be dynamically updated to sort the results... Instead of custom property, provide a textbox ...


1

Does the sort have to happen on the fly? If not, I would create a sort-order column that contained a number value and expose it in a datasheet view so that your author can set it there, and have the default view sort by the sort column.


0

Why not just create the choice field and import existing data via data sheet view or is that not possible in your situation? Could you provide more details on what you're doing?


0

http://blog.pentalogic.net/2011/05/how-to-do-list-highlighting-in-sharepoint/ http://blogs.msdn.com/b/balsharfi/archive/2011/10/20/sharepoint-lists-conditional-formatting-using-sharepoint-designer-2010.aspx It includes SharePoint Designer Javasript & Content Editor Web Parts Custom Columns via Visual Studio and of course 3rd party products ...


2

I have fixed this issue. I forgot to copy second script to edit form. Now its working as mentioned in the blog. http://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/ 1) The first script redirects to EditForm without ID 2) The second script on edit form check for ID and if its blank it retrieves the ID. Apologies if I have wasted ...


-1

this function returns the Item ID from URL: function getProjectID() { var urlParams; (window.onpopstate = function () { var match, pl = /\+/g, // Regex for replacing addition symbol with a space search = /([^&=]+)=?([^&]*)/g, decode = function (s) { return decodeURIComponent(s.replace(pl, " ...


1

to my knowledge, creating a site template is not full fidelity! so that means you loose the lookup, alerts and workflows! to get around this issue you need to use: powershell: SPBackup-site http://technet.microsoft.com/en-us/library/ff607901(v=office.15).aspx or stsadm stsadm.exe -o backup ...


1

To get the field included in ctx.currentItem it must be added to the view. So you have to make sure that the field is actually in the view you are applying the JSLink on. If this is in a list form you must make sure the "ShowInEditForm" / "ShowInNewForm" / "ShowInDisplayForm" properties (depending on which form) is set to a True on the field (you can do ...


0

There was something I was overlooking. Because I was looking for the title column I didn't notice that there was a column titled "Application Name (linked to item). I'm guessing this was the title column from the old site and it got transferred over as well.


1

a coded solution. what your talking about is the field that you want hidden! SPField.Hidden() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.hidden.aspx and to get the field use: Fields.GetFieldByInternalName() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldcollection.getfieldbyinternalname(v=office.14).aspx ...


0

When adding field elements to the list, or adding fieldref elements to a content type, you can add the following attributes to hide the column: ShowInDisplayForm="TRUE" | "FALSE" ShowInEditForm="TRUE" | "FALSE" ShowInListSettings="TRUE" | "FALSE" ShowInNewForm="TRUE" | "FALSE" http://msdn.microsoft.com/en-us/library/office/aa543225(v=office.15).aspx ...


1

You need little SharePoint designer skills to make any column clickable. Open the AllItems.aspx page for the specific list. Search for the tag List item LinkToItem="TRUE" to whichever column you want the link: > <ViewFields><br/> > <FieldRef Name="Attachments"/><br/> > <FieldRef ...


0

Couple of things to try to fix this issue. Using the SharePoint manager and rename the one of the content type and then delete it. http://www.interdynbmi.com/blog/how-resolve-upgrade-issues-duplicate-content-types or try this method: Perform export of the List ( no content) or Save as Template without content Import to target server ( no content). This ...


0

You don't need a new context to do this, you just need seperate list and item collections. If you have to get list 1, then use it to get stuff from list2: var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var firstList = web.get_lists().getByTitle("List1"); var firstListItems = firstList.getItems(new SP.CamlQuery.createAllItemsQuery()); ...


1

There are a lot of possibilities. In order to not shift the current paradigm too much, I would create a document library that has a content type associated with it that utilizes your existing excel file as a template. This will allow people to create new instances of the form that seem to be working well for you so far. This gives you the benefit of adding ...



Top 50 recent answers are included