You need to sign in to do that
Don't have an account?
Quentin Henrotte
Change value from PDF render
Hello, I want to change an outputText value in my Visualforce page. I used this :
<apex:outputText id="theText" value="bye"/> <script> document.getElementById('{!$Component.theText}').innerHTML = 'hello'; </script>It's working well in a HTML render but it doesn't work for PDF, Do you ave an answer about this ? Thx
When your visualforce page is rendered as PDF, JavaScript code will be ignored due to PDF is not rendered by browser.
PDF is designed for data presentation and download.
So I think your idea could not be implemented in PDF, maybe you can try controller.
Good luck.
All Answers
When your visualforce page is rendered as PDF, JavaScript code will be ignored due to PDF is not rendered by browser.
PDF is designed for data presentation and download.
So I think your idea could not be implemented in PDF, maybe you can try controller.
Good luck.