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’)”

Cesar_ Rookie Asked on September 21, 2023 in Other.
Add Comment
5 Answers

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.

Intermediate Answered on September 21, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.