You are viewing limited content. For full access, please sign in.

Question

Question

Form "Approval" in header when printed

asked on June 20, 2017 Show version history

I note that when I print a form it shows "Approval" in the header, as shown here:

 

 

I assume this is driven by the title tag in the html...

<!DOCTYPE html>
<html lang="en-US" dir="ltr">
	<head>
		<title>Approval</title>

Assuming that is correct... what is the best way to change the title so the form doesn't give the appearance that it is approved when printing?

 

Thanks,

Alon

0 0

Answer

SELECTED ANSWER
replied on June 29, 2017

I believe the title is where the value is coming from based on my own tests. You can use jQuery to change the title by using the following:

document.title = 'New Title:- The Jquery Effect';

Just change 'New Title:- The Jquery Effect' to the value you want.

0 0

Replies

replied on June 29, 2017

Bump, any tips?

0 0
replied on June 29, 2017

What screen are you printing this from?

0 0
replied on June 29, 2017

Blake,

Thanks for trying to help me out!

I have one user task in my Business Process called "Review CAR".  I am printing the form when it is in that user task.  In order to allow that printing easily I added a custom html button with the following code:

<input onclick="window.print()" type="button" value="Print Form">

One possibility I thought of is if I could get to the source file (html, css, javascript, or whatever it is) that generates this page I would be happy to change it there so all forms just use our company name in the title.

0 0
replied on June 29, 2017

Is Approval the name of the task?

0 0
replied on June 29, 2017 Show version history

Nope, that task is named "Review CAR"

0 0
replied on June 29, 2017

I believe that is a printer dialog setup. Usually there is an option to print header/footer when printing from a print dialog window. I would check those settings.

0 0
replied on June 29, 2017 Show version history

Yes and no.  Yes in the printer dialog you can turn off the header and footer, but that's not what I want to do.  Doing so presents two cons: 1 - It's a manual process that does not "stick" so users can forget to do it, and 2 - it forces a page x/y in the footer, which is the easiest way to force that in the footer that I have been able to find thus far.

So, what I want to do is change the "Approval" title to something else so it doesn't give the impression the document is an approved/approval document when in fact is still being reviewed.

Thanks again for trying to help!  I really appreciate it!

0 0
SELECTED ANSWER
replied on June 29, 2017

I believe the title is where the value is coming from based on my own tests. You can use jQuery to change the title by using the following:

document.title = 'New Title:- The Jquery Effect';

Just change 'New Title:- The Jquery Effect' to the value you want.

0 0
replied on June 30, 2017

Blake,

Thanks so much!  That worked perfectly!  I am trying to learn how to figure more of this out myself, any tips?

 

0 0
replied on June 30, 2017

Learn jQuery. It will help a lot with custom things like this. A book that I really enjoyed was JavaScript & jQuery: The Missing Manual.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.