javascript – How to encode spaces in sharepoint 2013 search rest api url?

In a sharepoint 2013 search rest url, I have multiple columns to filter on, but some of the values have spaces, but it seems spaces are used to delimit the filters. How can I encode spaces? See this for an example

This gets 0 record

http://mysite/_api/search/query?querytext='contenttype:News Page Channel:Corporate'&rowlimit=1

While both of these get 1


http://mysite/_api/search/query?querytext='contenttype:News Page'&rowlimit=1

There is a space in News Page btw.

How can I encode it?


SharePoint 2013 list workflow is not starting

I have a custom SharePoint 2013 workflow created by SharePoint Designer for a SharePoint Online List for new/update items.
The list has a SharePoint Form, from where the list item is created or updated.
When a list item is updated or created from the form, the workflow kicks in.

This was working fine for a year or so, now SharePoint 2013 Workflow does not starts.
All changes including update or create new item on the SharePoint list works, but workflow does not kicks in.
I even tried starting it manually for the newly created list item, but I get “Something went wrong. To try again, reload the page and then start the workflow” error message.
Even after refresh it still wont work.

Does anyone know how to fix it?
It was working fine a week ago, nothing changed on the form or the list or the workflow in the past three months.

SharePoint list item is entered is created or modified by the SharePoint Form, once the list item is created or modified the custom SharePoint 2013 workflow kicks in.

2013 – How to listen for an Infopath submit dialog in Sharepoint using Javascript

I know I shouldn’t be using Infopath. I don’t have a choice. We’re not in a new Sharepoint environment yet and we don’t have PowerApps yet. It will happen and we’ll have to redo all of this but we need Infopath in the meantime.

I created an infopath form attached to a form library because the user wanted to be able to add multiple attachments and that wasn’t possible with the list form. We needed to add custom scripting behavior to the form submit page but we couldn’t edit the existing form submit page that Sharepoint creates by default for the library so we created a new page and added the form and a script editor webpart for the Javascript.

My user wants the form to go to the list when she pushes the save button. Its set to close in infopath but currently it does nothing, the form just sits there. I have some say over what is in the query string and I heard that if you put Source= that the submit button will take you to the source URL when the submit is done but I’m not sure that’s going to work for my page. I haven’t tested it yet.

What I need to know is, using Javascript, how do I listen for positive confirmation that an infopath form successfully submitted to a Sharepoint library? In case I need to write a script to do this.

Please I know this is all an ugly hack but its what I have to work with. My tools are Javascript, Sharepoint (and only the front end) and Infopath.

2013 – Convert a column from text to choice(checkbox)

I need to upload (edit: currently trying via import spreadsheet) a table from excel where one of the columns needs to be a multiple choice selection field.

By adding a “;” separator into the excel column and then uploading it SP then converting the text column to a checkbox choice column SP seems to automatically know which values are the selected ones.

The only problem is that this does not work for filtering. When I click on the column to filter by and select a value the list will return 0 items.

Going into quick edit mode and opening the choices for that column on that item will then update the list so that when I filter by one of the selected values that item will appear.

I am looking for a quicker way of updating the columns so that I do not need to touch each row individually.

column data example:







2013 – SharePoint Image Map Tooltips

In order to show a tooltip, you can use the title HTML attribute attribute

For example:

<area title="Texas" href="...">

This is another example:

<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm" title="computer!">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm" title="phone!">
  <area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm"  title="coffee!">

enter image description here

How to remove rules from Rule Inspector on InfoPath 2013

I see fields listed in the InfoPath 2013 Rule Inspector that I no longer have on the SharePoint list. As a result it’s causing a validation error when users try to submit the form. Is there any way to remove the rules that are tied to fields that no longer exist (and are only visible on the Rule Inspector)?

Project Server 2013 CSOM SummaryTaskId

I have Project Server 2013.
Through CSOM in Project Server not properties baseline dates of the project.
But have properties SummaryTaskId. Can I load SummaryTask for Project used SummaryTaskId.

SharePoint 2013 Issue Tracker App- Columns "Title" and "Related Issues"

I need to update the "Title" column to be a drop down option. Where do I go to change that option. It currently only allows for a "single line item".

2013 – SharePoint Custom List – Column Tooltip to Transparent

I hope someone can help.

I am currently using the following snippet to remove the automated tooltip from ms-input and ms-long ms-spellcheck-true custom list column input fields:

$(document).ready(function() {
    $("tr td input(class='ms-input')").attr("title","");
    $("tr td input(class='ms-long ms-spellcheck-true')").attr("title","");

I would also like to remove the automated tooltip from ms-RadioText fields (choice columns) but I can’t do it by clearing the title because the title is being used to hide/show child questions depending on the choice the user makes on the parent question.

Is there any way that I can use CSS to make the tooltip on the ms-RadioText fields transparent? So the title can still be used to drive the dynamism, but the tooltip itself becomes invisible?

My coding skills are quite limited so apologies in advance if I’m asking a question that is impossible to solve!

Workflow task – email link to edit page rather to display page in Sharepoint 2013

From what I can tell, there is no simple way to do this.

One thing you can do is to create Workflows that set the Task outcome to “Approved” or “Rejected” or what have you, and then link that to a Custom Action defined on the list Display form. Then you get a “one click” solution to updating the form- however the custom action buttons appear in the Ribbon by default and can’t easily be moved into the form itself.

Another thing you can do is create a custom task form that includes buttons that activate a JavaScript function that either initiates the above workflows or updates the task itself through CSOM.

I have tried both of the above but neither is ideal because manually initiating workflows require elevated permissions on the list item.

The below solution seems like the simplest, even though it is “not smart”. Essentially you create a custom Display Form for the Task list that immediately redirects to the Edit form of the same list.

Automatically open SharePoint 2013 workflow tasks in Edit mode for easy one-click approvals