Page 1 of 1

Function in client script of List page is undefined (v2023)

Posted: Mon Mar 11, 2024 5:34 pm
by dheeksha2511

I have a function in client script in list page, but when i call the function, it shows the function is undefined and loadjs is automatically loaded when I generate the file, if I comment the loadjs, it is working fine and in some other pages even if I comment the loadjs it is not working, when I put that code in global code, then it is working.
How can i fix this.
Thank you.


Re: Function in client script is undefined(v2023)

Posted: Tue Mar 12, 2024 8:24 am
by mobhar

You may post your code for more discussion.


Re: Function in client script of List page is undefined (v2023)

Posted: Tue Mar 12, 2024 10:50 am
by arbei

You should add your function to window object, similar to the example for client side Global Code.