Set Cookie with SmartForms

  • 21 June 2015
  • 1 reply
  • 3 views

Badge +5

Hi, I'm using Office Web Apps with K2 SmartForms. The SharePoint documents are surfaced as hyperlinks on K2 so the end-user does not even know where the documents are from. They just click the hyperlink and the document opens up. 

 

The issue here is that Office Web Apps has a close button, when this close button is clicked the browser navigates back to SharePoint. I want to prevent this redirect back to SharePoint and keep the user within K2, so a navigate back to K2 homepage is required. 

 

Office Web Apps 2013 allows redirects to a specific URL by setting a cookie. 

window.document.cookie = "WOPISessionContext=http://client1.mydomain.com/project11210/default.aspx;path=/";

Anybody have any ideas how to do this with SmartForms?

 

Thanks.  


1 reply

Badge +8

Did you figure anything out?

Reply