HomeTechnical Support » E-mailing

E-mailing

Printing PDF copy if email is not present Messages in this topic - RSS

Nancy
Administrator
Posts: 765


7/3/2014
Nancy
Administrator
Posts: 765
Insert the referenced script at the top of the Footer Objects tab.
Create a copy on the Form\Editor\Settings tab.
Make Copy 1 on the Form\Editor\Multi-Parts & Printers tab the copy type of EMAIL
You should be ready to test.
0 link
Paul
Posts: 7


6/27/2014
Paul
Posts: 7
I am attempting to set up a form to send one copy via email and print another copy. That part's easy but when there's no email address I would like that copy to also go to the printer.

I am uncertain how to adapt the following to accomplish this:

#[Copy,0]ProcessPage «[Empty, {EmailTo}]»
#[Copy,1]ProcessPage «[!Empty, {EmailTo}]»

I only ever want two copies: one printed and the other emailed or printed but not both.
0 link
ilora
Posts: 2


9/24/2012
ilora
Posts: 2
Thank you very much Paula!
0 link
paula
Administrator
Posts: 208


9/21/2012
paula
Administrator
Posts: 208
The following code can be added to the top of the Footer Objects tab in your PrintBoss form:
#[Copy,0]ProcessPage «[Empty, {EmailTo}]»
#[Copy,1]ProcessPage «[!Empty, {EmailTo}]»

You will also need to set the Pre-process Assignments option on the Special Controls tab of the form to Special.

The ProcessPage command will only process the copy when the condition is met. In this case, the PDF will process when the email address variable is empty. Another way to use a condition is to look for the @ sign in the email address as follows:

#[Copy,0]ProcessPage «[!Inu, '@', {EmailTo}]»
#[Copy,1]ProcessPage «[Inu, '@', {EmailTo}]»

Copy 0 is the orignal copy for the form and assumed to be the PDF copy and Copy 1 is the first copy added to the form and assumed to be the Email copy. Be sure to replace the copy numbers in our example with the actual copy numbes of your PDF and email copies. These values are listed on the Multi-Parts and Printers tab of the PrintBoss form.
0 link
ilora
Posts: 2


9/21/2012
ilora
Posts: 2
Hi,
I am trying to figure out how to configure a PrintBoss form to print a pdf copy (not the original) if no email is found when sending an email copy. Any help is greatly appreciated.

Thanks,
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software