Dear @Rogue
"I do not know where to paste the Java code."
The code can be posted in Custom <head> Content located within > Lay Options > Custom CSS & HTML >
[image: 1638991994122-screen-shot-2020-09-14-at-2.51.54-pm-resized.png]
Note: it's advisable to wrap your Javascript within a "new page event" as stated here.
Example:
<script>
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
// Insert code here //
});
</script>
https://laytheme.com/documentation.html#custom-javascript
Hope this helps & best wishes 🌻
Richard