Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [query-string]

The QueryString collection retrieves the values of the variables in the HTTP query string. The HTTP query string is specified by the values following the question mark (?). Several different processes can generate a query string.

0
votes
2answers
45 views

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

My modal dialog for newform is not capturing the query string value I'm trying to pass to it. Alert on main page confirms the qs value for XID is set correctly. var xid = GetUrlKeyValue("ID", ...
0
votes
3answers
25 views

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

Grabbing query string values is easy in SharePoint with some javascript... var xid = GetUrlKeyValue("ItemId", false, location.href); But what if ItemId didn't exist in certain instances, how can you ...
0
votes
1answer
24 views

How to extract part of url parameter for search

Background I have a site that stores archived data extracted from an old application environment (Lotus/IBM Notes). The data is stored as lots of individual .pdf files, 1 per record from the old ...
0
votes
1answer
15 views

Suggestions for context menu link with querystring value to NewForm results in Page Not Found

Trying to set up a custom action for a library to send querystring parameters to a NewForm on another list using the Navigate to URL option. Without a querystring value the link works; displays ...
0
votes
1answer
23 views

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

Trying to add a list item, specifically the ID into a url in the DispForm.aspx. The customer does not want the ID displayed. I got the link in the display form, I figured out how to split out the ID:...
2
votes
1answer
111 views

Replacement of QueryString web part in SharePoint Modern UI

Is there any replacement of QueryString Web Parts in Modern UI? SPFx is the last option.
0
votes
2answers
84 views

Passing query string to Survey list newform.aspx

Is it possible to send query string to newform.aspx of the survey form so it's pre-populated? (I am using SP 2010) The question in survey list is created is ServiceTicketNumber and then renamed the ...
2
votes
1answer
93 views

Updating maxQueryStringLength value in SharePoint 2013

I'm getting the following response from SharePoint search after submitting a long (> 2000 chars) queryString. The length of the query string for this request exceeds the configured ...
1
vote
0answers
50 views

SharePoint 2016 javascript reference 403 forbidden

This past March we installed a SharePoint 2016 instance on our 2012 server and have been using it without issue for 7 months now. Last week I came into work to find the list views functionally stopped ...
0
votes
1answer
50 views

Extracting SharePoint data on daily basis

I want to export my SharePoint document library data on daily basis and csv file need to be save as naming convention as "Dataname_yyyyMMdd". As per my below script, it need to export data from the ...
1
vote
2answers
338 views

extract data from SharePoint document library to CSV using powershell

i am trying extract data of SharePoint document library to CSV file using powershell. I am getting data correct on CSv file. But one column i.e "Description" have more text data on it.So when run the ...
0
votes
1answer
255 views

How to split string condition on array with powershell script. Exporting SharePoint library data on csv file

i am trying export library data into CSV file. i had used string functionality on my script to get content. my script was working fine but i am getting output in single string (or) one column. My ...
2
votes
0answers
54 views

SharePoint 2013 List View Threshold with Query String Filter

I have done some research and I think I am ok, however I cannot take the risk of not knowing for sure. I have just developed a site that will host 8000 events per year (8000 List items) and there ...
0
votes
1answer
809 views

Replace Source query string value without redirecting

is there some way to replace the Source query string parameter in SharePoint without redirecting the user? All the examples I find use location.href="new url"; which causes the page to immediately ...
0
votes
0answers
248 views

Prefilling fields in NewForm.aspx with query string doesn't work

I have two lists. One describing projects, one project per row with several columns. The other one is a slightly modified task list, with every task assigned to a project from the other list using ...
2
votes
1answer
287 views

Add filters/refiners to CQWP webpart

I am on SharePoint Online environment, As a high level summary, we currently have pages that use a PageQueryString as a filter for a CQWP. However, from the results that are displayed within the web ...
3
votes
4answers
678 views

JavaScript - Rearrange String order?

var date = $(this).attr("ows_Date"); My current code displays a string output: 2017-01-02 Is there a Javascript code where I can move the first 4 digit to the back? How do i turn it into 01-02-2017? ...
3
votes
2answers
3k views

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

Sharepoint online currently has the function to do a multiselect on filtering of particular column when you are using a list webpart. I was able to use a query string webpart to filter one value, but ...
1
vote
2answers
983 views

How can i use QueryString with Sharepoint list programmatically?

I want to pull datas from list with queries. I want to use many queries with C# code. And there is QueryString in C#. I want to use it. So how can i do this.
1
vote
0answers
29 views

Opening a page from Email link does not populate the form with data, in that page

On performing some action(approve/reject a request) an email is generated with a link in it. On clicking the link, a SharePoint QA page opens that contains a form. All that works well! My issue is, ...
2
votes
0answers
142 views

Return QueryString(ID) as an integer

I actually have a custom dispform with a XsltListViewWebPart. This list has a column called RootId. I need to filter data from this list based on the ID set in the page's URL. I can query the ID in my ...
1
vote
0answers
32 views

Date range filter in OOTB for SPListview

I am working on a project in SharePoint 2013. Currently I am trying to implement list view filtering using OOTB QueryString parameters. I have found the following params have been working a treat ...
0
votes
1answer
91 views

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

Has someone already solved the conflict between IsDlg and Source query string parameters to allow a redirect after form submission in a SP.UI.ModalDialog? Per chance even when an InfoPath form is ...
1
vote
1answer
337 views

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

I have an item list called "MyPeople". I have a document list called "MyDocs". I associated documents in "MyDocs" to list items in "MyPeople" via Lookup field. On my Site page, I have a LVWP for "...
0
votes
1answer
194 views

Is it possible to combine contentclass terms in a Rest call?

SharePoint onPremise - 2013. I'm attempting to use the following string, and get errors. 'contentclass:"STS_Web" OR contentclass:"STS_List_DocumentLibrary"'; It works perfectly if I specify a single ...
1
vote
2answers
470 views

Control redirect on saving new Document Set with NewDocSet.aspx

Does anyone have any experience with controlling the redirect when creating a new document set with NewDocSet.aspx? Our client would like the ability to create a new document set and be returned to a ...
1
vote
2answers
3k views

Source Querystring Parameter

I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form. Here's the Source URL I am using: https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm....
3
votes
1answer
1k views

SharePoint REST orderby ArticleStartDate not working

I am trying to run a rest query to return the top three items from within a folder in a pages library, I have the code working however when I try to add an 'orderby' or 'top' parameter to the query it ...
0
votes
2answers
363 views

Passing multiple queries from a Web Part in order to filter a view

I am aware that using URLs like http://site/Lists/MyList/AllItems.aspx?FilterField1=Title&FilterValue1=ExactTitle&FilterField2=Year&FilterValue2=ExactYear will display a filtered view ...
-1
votes
1answer
399 views

Query string filtering by custom field

i added a custom action in sharepoint designer which is a url link to a document library. On this document library page i have added a query sting filter webpart, to filter data based on a list ID. I ...
0
votes
1answer
412 views

Filter SharePoint view on basis of URL parameters

I'm developing my site on SharePoint 2013. I've created a view called Advance view. I'm passing 6 parameters to that view in query string(URL). My requirement is if I pass only 3 parameters in query ...
0
votes
1answer
54 views

Migrating string to Sharepoint Online in Workflow

I moved a workflow to our Sharepoint Online enviroment from on prem. I am having a hard time figuring out the correct format for the URL string. The first image is the original string The second is ...
1
vote
1answer
244 views

How do I add the title of a list item to a custom action URL?

I'm trying to build a custom action button that links to a page with a query string URL. I've tried "?Project={ItemTitle} but that doesn't work. I can get the ID by adding "?Project={ItemId}" but ...
3
votes
1answer
1k views

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

I've gone through some articles, knowing that I can use querystring to filter a list web part: https://msdn.microsoft.com/en-us/library/cc751316.aspx https://stackoverflow.com/questions/24702889/...
1
vote
0answers
96 views

2010: attach URL parameters to the base url of the iframe

I have an iframe in my page which has the URL http://example.com/test.aspx?ItemID=n. I want the iframe in my page to load the item id in the query string so that the URL inside the src becomes http://...
1
vote
1answer
247 views

2010: How to pass query string filter values to iframe

I have a page viewer webpart in a page where I want the ItemID to be updated dynamically when the page loads. Since I cannot filter values using query string, how can this be achieved? Thanks in ...
1
vote
3answers
268 views

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

I am trying to create custom NewForm.aspx. This form should auto populate current user login name display name and email details in the form when user load the NewForm.aspx. Note : Without using ...
1
vote
0answers
168 views

Fill in External Item Picker (BDC) with query string value with InfoPath

We are trying to customize a 'new' form with InfoPath so that our query string value (idPatient) is automatically filled in into the External Item Picker (BDC entity). In InfoPath, we have set up the ...
0
votes
1answer
476 views

SharePoint 2010 InfoPath Web Part Query from Query String Web Part

I have been wracking my brain, Google, blogs, etc. for an answer to my problem for about the last day and finally gave in to ask the question. I'm fairly new to InfoPath, but less new to SharePoint. I'...
1
vote
0answers
70 views

Using default and user selected filters for a list

I want to filter a main/task list based on what's being selected in a Sharepoint List Filter Web part. However if there is a "querystring" in the URL, then I want the List filter autoselected to whats ...
0
votes
1answer
2k views

Pass the query string value to NewForm.aspx SharePoint Online/365

i know there is an answer to this in shareponit 2013 and that SharePoint Online/365 should be pretty much the same, however i can't seem to get the following code (not my own, this is taken from a ...
1
vote
2answers
2k views

SharePoint Calendar view with Query String Filter

I need to create two custom columns inside SharePoint Calendar List and I need to apply Filtering to calendar view with regards to custom columns for the users. I need to apply the same using default ...
0
votes
1answer
649 views

SharePoint Query String Filter not working with space

I am creating a url that looks like this: "http://servername/sites/mywebsite/sitespages/page.aspx?ProcessName=my initial process" But when I redirect SharePoint to that page using: location....
1
vote
1answer
886 views

Query String (URL) Filter Web Part

I am developing a portal in SharePoint 2013 in which I am using Query String URL filter web part, the function of web part is to filter the web parts on the bases of years. I gave the default Year ...
2
votes
1answer
249 views

Can I filter a search result by result source directly in the search box? (SP 2013)

I'm looking to create a searchString for a search box that limits the results by a result source I've made. Just like you would filter by a managed property. Eg.: {search center url}?k=Author:w16375. ...
3
votes
1answer
342 views

Connected Web Parts on Document Set Homepage Causing Error

On my document set homepage I have added two list view web parts. These two web parts are connected so the second is filtered based on the first. Environment 1 is selected by default on page load. ...
8
votes
1answer
790 views

Set metadata column value from query string when uploading documents

When users upload files to a SharePoint Online (2013) document library, I would like for a value from the query string to be inserted into a metadata column in the library. I found a number of posts ...
0
votes
1answer
2k views

add query string to url

I wish to add Query string to current url of site when i click on button. I dont know how its done in SharePoint but know how to do in asp.net like below string url = HttpContext.Current.Request.Url....
2
votes
1answer
638 views

Content Search Web Part - Query String

I would like to filter CSWP results based on query string. I have CSWP in a page ItemDetail.aspx, the query is Path:"http://sp03:2016/Lists/Announcement%20Custom/" contentclass="...
18
votes
1answer
5k views

What does this code getQueryStringParameter do?

I would like to know what this code does? I am using it almost all the time but I don't know what it does. function getQueryStringParameter(paramToRetrieve) { var params = document.URL.split("?")[1]....