Question

2
Replies
188
Views
Close popover
Sateesh Kuna (SateeshK5805)
Accenture
Application Development Senior Analyst
Accenture
IN
SateeshK5805 Member since 2016 3 posts
Accenture
Posted: March 22, 2018
Last activity: March 23, 2018
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,
Close popover 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.