Expand my Community achievements bar.

SOLVED

Printing form doesnt work if its got mandatory fields on it

Avatar

Level 4

Hi again,

 

I've got a client asking me to disable the system message they get every time they try to print a form of mine where there's mandatory fields on them. I thought that i had like and "if" statement in there checking for mandatory fields, but it turns out it doesn't and it looks like its related to the print function.

 

Here is the code inside my print button:

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

 

Can i fix this so they can print without receiving that system message??

Thx, yet again for all your help

 

PAtrick

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

What system message you are getting?  I used the below code, and this code directly opens a print dialog.

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

What system message you are getting?  I used the below code, and this code directly opens a print dialog.

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);