Question

What is the easiest way, in SharePoint 2013, to execute JavaScript when listitem updates?

For example,

  • Can SharePoint Designer 2013 do this?
  • Is there any way which does not involve WSPs, Apps or Sandbox solutions?
Was it helpful?

Solution

No, workflows do not have the ability to execute javascript. You'd need to account for that on a custom edit page on saving the item, then hand off any components the workflow is supposed to do at that point.

OTHER TIPS

You might be able to get creative:

  • Workflow updates a list item
  • JavaScript on masterpage pings the list, looking for this updated list item
  • If found, JS does its thing

Bad side is that you have JS querying every time the page loads, but it's an async call, so shouldn't hurt too much.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top