• Quentin Henrotte
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
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
 
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