I ended creating 4 action handler scripts for an application. All of these scripts use the same update code at the end of them. I would like to turn this code into a function and share it between the files so if I am updating things in the future I don't need to update all four files and maybe miss one.
You can define custom JS code in scripts and styles, which I shared a visual of below. You can also define custom JS and/or CSS in your org settings. These functions can be called anywhere in your app!
Okay, thank you Lauren. So only on a global scale, not within app scope? I appreciate it.
Actually @lauren.gus I wasn't able to find where this is at. Please advise.
If you click the three dots in the top right there is a dropdown:
Haha! I just made that same screen shot to show I found it (and for other's reference). Thank you.
Yes, you should be able to