Highlighted

Printing Required Fields

Avatar

Guest

20-02-2009

I am still learning my way around LiveCycle and need some help. I have developed an Application in LiveCycle ES 8.2, I want to set certain fields as "Required". I also want to make sure the Application can't be "printed" unless all "Required" fields are complete. Any help available?



I also have an Application not developed in LiveCycle that I have been able to set the "Required" setting but can't seem to set the Print to only print once all "required" fields are complete. Could use help here too!



Thanks Everyone

Replies

Highlighted

pguerett

23-02-2009

You woudl create a button (called Print), you could check all of the required fields and if they check out then do the print.



Note that this does not stop the user from hitting Ctrl-p or File/print. To do that you could use the pre-print event
Highlighted

_Edgar_van_Waar

23-02-2009

Hi,



I'm facing a similar situation. I already found out a solution based on the pre-print event. But is there any way to cancel the print-event?
Highlighted

pguerett

24-02-2009

Yes ...have a look in the screpting reference at the cancelAction method. Your code woudl loook like this:



xfa.event.cancelAction = 1
Highlighted

_Edgar_van_Waar

24-02-2009

Thanks! That's helps a lot... but now I get an anoying popup that 'print was cancelled'. Is there any way to suppress that?