Skip to main content
4 votes

JavaScript - Rearrange String order?

var d=$(this).attr("ows_Date"); var date=new Date(d); alert((date.getMonth() + 1) + '-' + date.getDate() + '-' + date.getFullYear())
Deepmala's user avatar
  • 1,857
3 votes

How to make forms in ModalDialog (IsDlg) respect Source and redirect accordingly to a 'thanks' page after submit?

You would have to overwrite the Save Action using PreSaveAction() in order to look at the Source, because how I understand it, Source is ignored if IsDlg is present.
Mike's user avatar
  • 12.2k
3 votes
Accepted

SharePoint REST orderby ArticleStartDate not working

You also need to expand the property inside the ListItemAllFields as ListItemAllFields/ArticleStartDate. The full url would be somewhat as below: _spPageContextInfo.webAbsoluteUrl + "/_api/web/...
Gautam Sheth's user avatar
  • 30.9k
2 votes

How to add multiple condition filtering in query string to list view

You can apply only one filter on the Column using Query String. To achieve this what you can do is create a Calculated Column of Type Date and say =Created. So you will have the same date as the ...
dsouzajoel22's user avatar
2 votes

SharePoint Designer 2007 QUERY STRING to populate current user name in NewForm.aspx

You can use CSOM or SPServices to get the current user. To use SPServices, you need to include the JQuery and the SPServices scripts. var thisUsersValues = $().SPServices.SPGetCurrentUser({ ...
Erin L's user avatar
  • 4,028
2 votes

Source Querystring Parameter

Open your Newform.aspx or Editform.aspx page. Add a Script Editor Web Part. Type following line in your site url New Form: http://YOUR_SERVER/Lists/YOUR_LIST/NewForm.aspx?&toolpaneview=2 Edit ...
James Grizzle's user avatar
2 votes

How can i use QueryString with Sharepoint list programmatically?

Use Request.QueryString to get querystring. Request.QueryString["parameter1"]; Build your query with dynamic values. Sample code: Server side object model: SPQuery query = new SPQuery(); ...
Lee's user avatar
  • 4,271
2 votes

How can i use QueryString with Sharepoint list programmatically?

If you have a Visual Web Part and placed it in a page called http://myspsite/pages/WebPart.aspx then form the url with passing the Query String Parameter like http://myspsite/pages/WebPart.aspx?...
Esaki's user avatar
  • 1,272
2 votes
Accepted

Modal-Pop up showing a List of Related Documents filtered by individual List Item in a LVWP

Based on your requirements I understand that you have to open a modal window with list documents associated with the person in the MyPerson list. To achieve this you can make following changes. ...
Venkat Konjeti's user avatar
2 votes
Accepted

Updating maxQueryStringLength value in SharePoint 2013

It appears "ValidateInputIfRequiredByConfig" is a method in the .net framework. You can view the implementation of this method at https://referencesource.microsoft.com/#system.web/HttpRequest.cs,...
Prasanna Ruwangana's user avatar
1 vote

How to pass multi select filters with query string using webpart connections

What is the column type of the particular column? If the particular column is the Checkboxes (allow multiple selections), when you filter multiple values on the column by query string(URL) filter ...
Amy_MSFT's user avatar
  • 2,946
1 vote

How to pass multi select filters with query string using webpart connections

You will need to specify the column name with FilterName parameter and values with FilterMultiValue in your query string. For example, if you need to filter an issues list to get all issues with ...
Drago Z.C.'s user avatar
1 vote
Accepted

Microsoft Graph general exception using filter expression with 'and' condition

As you want to filter list items based on FirstName column, try using request URL in this format: https://graph.microsoft.com/v1.0/sites/company.sharepoint.com:/sites/samplesiteid:/lists/{...
Ganesh Sanap - MVP's user avatar
1 vote

osssearchresults.aspx page have problem on handling URL query string

I solved the problem by change the default AAM from "https://servername" to "https://mysharepoint.abc.xyz". The search is working for this string pattern now. https://mysharepoint.abc.xyz/sites/abc/...
Mark L's user avatar
  • 4,065
1 vote

osssearchresults.aspx page have problem on handling URL query string

Please check if SSL is configured correctly as per below link. https://blogs.msdn.microsoft.com/fabdulwahab/2013/01/20/configure-ssl-for-sharepoint-2013/ Also check if you are passing http:// (...
Siddharth Vaghasia's user avatar
1 vote

How to pass and capture query string parameter to newform in modal dialog?

You can maybe also use GetUrlKeyValue() if you don't want to add more libraries: https://praneethmoka.wordpress.com/2012/01/12/some-useful-javascript-variablesfunctions-in-sharepoint/ (did not test ...
Peter Deleu's user avatar
1 vote

How to catch null or undefined query string parameters in SharePoint?

GetUrlKeyValue function in SharePoint is defined in init.js. If the key is not found in the specified URL then it returns an empty string(""). So, you can check it simply like below: if(xid) { ...
Ganesh Sanap - MVP's user avatar
1 vote

How to extract part of url parameter for search

I would implement this as a custom display template. You could add JavaScript logic to perform the URL transformation. Create a custom content type for the PDFs in the library and apply a Result Type ...
Matthew McDermott's user avatar
1 vote
Accepted

Add list item in querystring in URL, ID needs to be hidden

No need to split the url in Sharepoint. Just use the Sharepoint built-in function var urlParam = GetUrlKeyValue("NAME_OF_YOUR_URL_PARAMETER") supposing that the page url is something like page.aspx?...
Steve T's user avatar
  • 149
1 vote
Accepted

extract data from SharePoint document library to CSV using powershell

Replace line breaks with spaces before using $Description. $web = get-spweb $siteUrl $caseLib = $web.lists | where {$_.title -eq $listTitle} $query=new-object Microsoft.SharePoint.SPQuery $...
Piero's user avatar
  • 278
1 vote

JavaScript - Rearrange String order?

If SharePoint is loaded then it has added a format option see: Changing date format using javascript Makes it a one liner: String.format("{0:MM}-{0:dd}-{0:yyyy}", new Date("2017-01-02")) Provided ...
Danny '365CSI' Engelman's user avatar
1 vote
Accepted

JavaScript - Rearrange String order?

I went really far with this one as the currently accepted answer utilises and manipulates arrays. This could scale quite badly as these functions are quite expensive (compared to alternatives). The ...
hairmot's user avatar
  • 126
1 vote

JavaScript - Rearrange String order?

I would prefer using the solution by @Deepmala because it takes into account the date being formatted differently, however if you wanted a 'moving numbers' solution: function rearrangeDate(dateString)...
Dylanthepiguy's user avatar
1 vote

Control redirect on saving new Document Set with NewDocSet.aspx

This is not the prettiest method, nor is it Sharepoint focused but it works fairly well if you know where you are attempting to add doc sets from We added a script editor webpart above the image on ...
bla9x's user avatar
  • 171
1 vote

Source Querystring Parameter

When you come to edit page, you have to pass source parameter, if parameter is missing you can write JavaScript to include that parameter if it is missing. more detail here
Ali's user avatar
  • 913
1 vote

Filter SharePoint view on basis of URL parameters

I found the answer. I merged two different types of filtering techniques. For date parameters I used filtering in list view and for remaining parameters I used following technique: For each field I ...
Tushar Chaudhari's user avatar
1 vote

Displaying Query String (URL) filter result on Page

It depends where you want to put the title. If you want to put it at the main title of the aspx, open it in the advanced mode. Look for the PlaceHolderPageTitle and customize the body of it. In my ...
Emaborsa's user avatar
  • 1,189
1 vote
Accepted

Sharepoint Search - Managed property name contain hyphen "-" not working

You need to add quotation marks like this: "My-Property":value Keep in mind that if you're doing this, for example, in javascript code and construct a query with multiple parameters then you might ...
mctl87's user avatar
  • 176

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