Reply To: Print Button

Home Forums Quform WordPress Print Button Reply To: Print Button

#33865
oivanr
Participant

I had already work on something about it.

1) Create a html button.
<button class=”btn-default” type=”button” onclick=”printDiv(‘areaImprimir’);”>Imprimir</button>
2) Create a function in JS
function printDiv(nombreDiv) {
var contenido= document.getElementById(nombreDiv).innerHTML;
var contenidoOriginal= document.body.innerHTML;
document.body.innerHTML = contenido;
window.print();
document.body.innerHTML = contenidoOriginal;
}
It must be customize to specific need but the main idea is that.
Regards,

Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy