How to print a widget in Service Portal

Toren
Kilo Guru

Hey All!

I am currently using the out of the box form widget embedded in another custom widget. My customer wants me to add a button that allows them to print the form and its contents.

I am currently trying to use the javascript $window.print() function and it is not printing the entire form. It is only printing what is viewable in the window

Any solutions to this issue or advice on other approaches is greatly appreciated!

 

Best,

Toren

2 REPLIES 2

Ishita Shrivast
Kilo Guru

Hi there,

Please go through the below link. I hope it will help you. 

https://community.servicenow.com/community?id=community_question&sys_id=4e529761db101fc01dcaf3231f96...

 

If it helps, please mark it as correct and helpful. If not , then please let me know.

Regards,

Ishita Shrivastava.

Hey Ishita!

 

This looks like it could be on the right track, but I am kind of confused how I would go about using sysparm to control what is printed. The original post doesn't go into much detail.