The template itself is a copy of the original page which is hidden and I have renamed the fields slightly on the template so that they are not linked (maybe that was unnecessary since they will be again renamed when the template spawns, but I was having trouble working on the document with identical field names).
So I will create a modified calculation script for the template (using the modified field names) called
So here are my questions:
1) Can a document level function reference another document level function? Can tptBasalArea() reference PreFix() or should the script for PreFix() be built into tptBasalArea()?
2) Is there a better place for a script that is only used by that template, like a page level script?
3) Have I created unnecessary inefficiencies that will slow everything down?
2) At the page level you can only assign code to the page's Open and Close events, but I wouldn't use those for this purpose. The rest of the scripts are either at the App, Document or Field/Bookmark/Link levels. For your purposes I think keeping it at the doc-level is the best option.