This project has moved. For the latest updates, please go here.

javascript:SP.UI.ModalDialog.showModalDialog and Cancel\Start buttons

May 23, 2014 at 3:44 PM
I'm trying to use the ModalDialog with workflows. I can get the page to load but the Start and Cancel buttons do not close the window.

Here is my code:
javascript:SP.UI.ModalDialog.showModalDialog({url:"{SiteUrl}/Workflows/Assign%20Open%20Action/Assign%20Open%20Action.aspx?List={5e92df72-4d20-417a-a6a0-08042c405391}&ID={ItemId}&Source={Source}", title: "Assign Open Action"}); return false;

I've seen examples on how I'm supposed to use "dialogReturnValueCallback" but I don't really understand what I'm doing. :(

All the examples are for web pages where you define the ID. I'm trying to get this to work within the "Custom Actions" area of my List.

Could someone show me an example of using "dialogReturnValueCallback" to return to the page if you hit Cancel or Start?
May 23, 2014 at 4:15 PM

Your question doesn't seem to have any connection to SPServices, so I'd suggest that you post it in another forum.