Question

2
Replies
217
Views
Sateesh kuna (SateeshK5805)
Keansa
Pega COE and Senior Consultant
Keansa
IN
SateeshK5805 Member since 2016 3 posts
Keansa
Posted: March 22, 2018
Last activity: March 23, 2018
Posted: 22 Mar 2018 1:33 EDT
Last activity: 23 Mar 2018 2:30 EDT
Closed
Solved

How to Hide buttons and other additional text when we click on Print.

Can u suggest a approach that not to Print Buttons and other additional text and should to print only the body of HTML. I included following code in the HTML :

<td nowrap='nowrap' align='center'>
<button onclick="myFunction()" class='littleButton' title='<pega:lookup property=".pyActionPrompt" value="Print"/>' id="button3" name="button">
<span class='buttonLeft'></span>
<span class='buttonMiddle'>
<span class='buttonText' onmouseover="this.className='buttonTextHover'" onmouseout="this.className='buttonText'"><pega:lookup property=".pyButtonLabel" value="Print"/></span>
</span>
<span class='buttonRight'></span>
</button>
</td>

<script>
function myFunction()
{
window.print();
}
</script>

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.