Hello Everyone !
Hope all are well. I wrote a JS web resource which execute on form load. But that does not execute not even first line of console.log() or debugger. I placed alert but alert just execute further not executing. Can anyone tell me how to resolve this issue?
Following is my code:
// a unique namespace for your libraries
var Sdk = window.Sdk || {};
(function () {
// Code to run in the form OnLoad event
this.changeStyle = function () {
//alert("in margin padding");
// Code of Switch Business Process Flow with another Business Process Flow
debugger;
console.log("entered in margin padding script 1");
debugger;
//parent.document.getElementById("department_quickform_rfunsw_department_content").firstChild.style.marginTop = "-28px!important";
var firstChild = parent.document.getElementById("department_quickform_rfunsw_department_content").firstChild;
debugger;
firstChild.style.marginTop = "-28px !important";
debugger;
console.log("entered in margin padding script 2");
debugger; parent.document.getElementById("department_quickform_rfunsw_department_content").firstChild.style.marginBottom = "-29px !important";
debugger;
console.log("entered in margin padding script 3");
debugger;
parent.document.getElementById("department_quickform_rfunsw_department_content").style.display = "none";
debugger;
console.log("entered in margin padding script 4");
debugger;
}
}).call(Sdk);
*This post is locked for comments
I have the same question (0)