Hello guys, Thanks in advance for your help.
I'm trying to set a global variable through javascript but it's not working, so I tried to do simple debugging.
I've created a function to set a global variable and send API request.
globalThis.form2 = function (runtime){
console.log(runtime);
}
The console shows "undefined"