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.
Function in client script of List page is undefined (v2023)
-
- User
- Posts: 8
Function in client script of List page is undefined (v2023)
-
- User
- Posts: 9419
You should add your function to window
object, similar to the example for client side Global Code.