Forum Discussion
TylerParker
7 years agoQrew Assistant Captain
Good content Dan, thanks for the explanation and examples
_anomDiebolt_
7 years agoQrew Elite
Two additional points:
(1) You should probably not use a function named main() as it could easily collided with a QuickBase function named main. All you injected JavaScript code should be included in a IIFE (Immediately Invoked Function Expression):
(function () {
/* your code here */
})();
)
(2) It is best to name all of you injected code pages with a prefix "module" followed by the name of your table and perhaps an additional word reflecting the function of the script. This will help you recognize the purpose the code page on sight and would help automation scripts to detect and potentially update your code pages automatically (coming).
(1) You should probably not use a function named main() as it could easily collided with a QuickBase function named main. All you injected JavaScript code should be included in a IIFE (Immediately Invoked Function Expression):
(function () {
/* your code here */
})();
)
(2) It is best to name all of you injected code pages with a prefix "module" followed by the name of your table and perhaps an additional word reflecting the function of the script. This will help you recognize the purpose the code page on sight and would help automation scripts to detect and potentially update your code pages automatically (coming).