I'm doing an update of the business process flow via javascript, based on an option set value.
I'm setting the processId and the stageId, then i force a form save, and on the callback i was refreshing the form. After rollup 1 has been applied the scripts on the page are breaking on page refresh. Does anyone have experience the same problem is something that came out with turboforms for some reason?
This is the code that i'm using at the moment, it works, but onLoad the script i previously set are all failing. They work on the normal load of the page.
NOTE: I'm aware of turbo forms and the asynchronous load of Javascript. But in this case i have a single file, and on refresh it should be cached.
Xrm.Page.data.save().then
(
function () {
window.location.reload(true);
},
function () {
}
);