RE: How do I properly use onclink inside Advance PDF/HTML Template?
I have an onclick inside my html tag and when I click on it, it redirect me to another page with an error “Page not found”
I tried using <#function myFunction(){}>
I also used <script>myFunction(){}</Script>
I don’t know what I’m doing wrong.
onclick=”alert(‘This does not work either’)”
I’d be (happily) surprised if this will work through the various layers of NetSuite/ Freemarker and BFO but this looks like it might be worth a read:
https://bfo.com/blog/2011/08/25/using_acrobat_javascript/
Exactly how much of this is supported in NetSuite is probably down to trial and error unfortunately.
N.B. In case you’re not aware, Freemarker is the template engine that takes the template and generates the final content and then BFO is used to turn that into a PDF.