Hot answers tagged

3

You can implement OoB Information Retention Policy where you can have the Modified Date greater than or equal to Closing Date. Item should be deleted.


3

Allow users to add items to list from custom web part - On default new form put a script to navigate to page which says - "New item cannot be added from here" or alternately add content editor on new page with text " New item cannot be added from here" and hide (not delete) the existing web part on page Prevent same group of users to view/edit items ...


2

You can use Search query Webpart for this and use filters to refine your result set. Have a look at the following link on how to configure this Using-content-search-web-part-and understanding SP2013 search


2

Doable. what you need to create is a javascript code that does the following: Parse the URL and save code (into a variable) and user (into another variable) This link my help you get that http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript Pass the 2 variables with the site URL and list name to the following function: ...


2

Here's a example based on a jsLink-boilerplate I created. Because of the boilerplate origins there still is some code that is not used but for an example this will be enough. Install it on your list following these steps: Edit the provided snippets and fill in your variables such as fieldname, listName, jsLinkPath, defaultValue, etc. Create a file ...


2

I am having a solution but it may be not the only solution. Here is my approach. Create a Workflow which will trigger when a new item is added or existing item is changed In the workflow check CurrentItem whether your ImageField is null? If it is null then Set the value of your CurrentItem's ImageField to the default image URL Make sure that you should ...


2

Hey you can achieve this functionality using SharePoint Designer Workflow. We have Pause Until option available in SPD. You can specify your Closing date in Pause Until action and then write deleting item logic. For more detail please have a look to this Delete list item after specific duration using SharePoint designer workflow Let me know if this ...


2

You can set the webpart to a static width and then set the width of any column that you like with a script editor webpart. <style type='text/css'> .ms-vh-div[DisplayName='<ColumnName>'] { width:250px; } </style> Just insert the display name of the column instead of <ColumnName>.


2

You can check it from QueryString in farm solution: string id= Request.QueryString["ID"]; if (id != null) { //code goes here } In SandBoxed solution string id= Page.Request.QueryString["ID"]; if (id != null) { //code goes here }


2

Simple way to hide view header would be to use CSS - Add a content editor webpart on view page (under Media & Content Category). Add below code in the content section. .ms-viewheadertr { display:none; }


2

Refer to this post: Cannot update Created By (Author) field through powershell Basically you need to get a reference to the item, then do something like this: $SPListItem["Author"] = $userString; $SPListItem.UpdateOverwriteVersion();


1

A CAML query for that would look something like this <View> <Query> <Where> <Contains> <FieldRef Name='Title'/> <Value Type='Text'>username</Value> </Contains> </Where> </Query> </View> But I do wonder why you ...


1

For me : 1- Yes they are two different ways to retrieve data from SharePoint (Technically speaking). 2- for the name SharePoint rest api and SharePoint Search rest API (See MSDN) 3- Yes both are active and present in SharePoint 2016 4- the difference is one is based on search services, so need to take care about indexing and planning your search schema ...


1

Go to list settings > advanced settings and select the option to open list items in a modal dialog to yes/true.


1

I don't think it is possible OOTB, so I would suggest create a custom notification workflow in SPD 2010 and customize it with the columns you want to show. Another work around (just came now while I am typing - not tested): Option 1: Create a custom content type inherting from Task and remove the title and see if this works Option 2: Rename the title ...


1

Shefali has the correct answer but if there are multiple lists on the page this will remove them all. If you want to only target one of them select it in IE Developer of Chrome Developer and find the web part ID. Preface this first. ex #MSOZoneCell_WebPartWPQ01 .ms-viewheadertr { display:none; } I would also put the style tags in... It should look like this ...


1

How about creating a column, maybe call it newWF as a (single line of text) and set to default value to Yes. in your wf, check the value of that column, if it is equal yes(meaning it is a new item), run your logic, but dont forget to set the column to No after you finish. if the value is no do nothing or skip. not the most elegant solution, but it works! ...


1

You can check if condition for the approval block with the workflow status hidden field. Create on hidden column called IsApproved & give default value as No At the time of new item creation inside the approval block, Update the IsApproved field as Yes In the workflow check if IsApproved equal to false then go to approval Please refer the below image ...


1

If you need to show data from multiple list then there is no predefined direct WebPart available. But You can make use of Content Search WebPart in tricky way in order to achieve this functionality. Its little bit tricky but it will definitely work because i already gone through this requirement. This can be achieved using SharePoint Search Service ...


1

Lists are displayed with WebParts So SharePoint 2013 CAN attach JavaScript files to Lists. JSLink It is the JSLink setting in the Misc section of the WebPart properties Be aware, unlike a CEWP script, this JSLinked scriptfile will load before the whole page is loaded. So if you do DOM related stuff you need to wait till the DOM is there With code you ...


1

At first glance (and its late saturday afternoon here, and the sun is out and its above 20 celcius for the first time, and I have had some beer) You are running into JavaScrip scoping issues: var passedData = { dfd: d, idx: i }; is the line that worries me, (it is almost a philosophical question... but that must be the beer) where does i come from? You ...


1

If you're on SP 2013 - Create a result source. The query in the result source should look something like {searchTerms} Status:"Open" ContentTypdId:0x01xxxxxxx ContentTypeId should be the content type for your list Configure your content search webpart or search results web part to use your new result source


1

There have to be commas between the value pairs: [ ["EmployeeNumber", $("#tbEmployeeID").val()], ["EmployeeName", $("#tbEmployeeName").val()], ["EmployeeEmail",$("#tbEmployeeEmail").val()] ]


1

For this there are multiple ways, one of the best approach is using CQWP which will display data from all the subsites. May this question is already answered at Accessing data from lists in sub-sites at parent site level Before moving forward have a look to this once.


1

You can use SharePoint Column type "Publishing Hyperlink" and you can directly provide provision to user to upload attachments from SharePoint Itself. Publishing must be enabled by a site collection administrator for these column types to appear. To enable publishing, go to Settings Small Settings gear that took the place of Site Settings.> Site Settings. ...


1

Default Functionality of export to excel for list is Awesome, but according to me the same cannot be call through any API. So I would suggest rather than Workflow, go with SharePoint Timer Job feature. This link would help you do the same and achieve your functionality http://bhatiaashish.blogspot.in/2012/09/export-to-excel-and-email-sharepoint.html ...


1

Edit your view and in the "Group By" section, select the Expanded option for this property : "By default, show groupings:"


1

It seems like a permission issue. Make sure the group members can be viewed by everyone and not only by group members.


1

Is it a list workflow? If it is, you should be able to just use the current item and choose to return the value from the person field as email,display name or login.


1

Give this a shot Open list settings and try setting the default view to AllItems. Or create a new view and set it as the default view.



Only top voted, non community-wiki answers of a minimum length are eligible