Printing form doesnt work if its got mandatory fields on it | Community
Skip to main content
Level 4
April 27, 2023
Solved

Printing form doesnt work if its got mandatory fields on it

  • April 27, 2023
  • 1 reply
  • 530 views

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

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

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);

1 reply

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
April 28, 2023

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);