Allow more dynamic customization in document templates e.g. packing slip
Allowing scripts in packing slips would enable vastly more powerful customization.
You could reference external data from a server e.g. serial numbers.
You could implement complex customs declarations and make the packing slip match. For example, if you have an item you don’t want to make a declaration for, such as an add-on or surcharge, it currently still shows up in packing slips, which customs officers may delay approval over.
You could do arithmetic and so much more for custom tabulation.
Thank you for your feedback.
This currently isn’t possible due to the backend framework we use for our packing slip editor. However, we have a lot of feedback about packing slip template improvements that we are considering later in 2021.
While it’s unlikely we’ll implement script support in our editor, there may be other ways to accomplish what you are trying to do so we will leave this post open for further feedback around allowing dynamic content options in packing slips (we are also updating the post title to be less “script” specific and more about the ultimate goal of your customization needs).
Robert Bird PedalPCB.com commented
This would be excellent.
I would like to add shaded table headings on the bottom of my packing slip to display "Notes from Buyer" and "Notes to Buyer", but these shouldn't be displayed when the notes fields are empty.
I've tested the code in the Template Editor and it works perfectly, but the editor won't allow me to save because it contains the <script> tag.