Printing Required Fields

Avatar

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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

Avatar

Avatar
Level 2
_Edgar_van_Waar
Level 2

Likes

0 likes

Total Posts

32 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
_Edgar_van_Waar
Level 2

Likes

0 likes

Total Posts

32 posts

Correct reply

0 solutions
View profile
_Edgar_van_Waar
Level 2

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?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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

Avatar

Avatar
Level 2
_Edgar_van_Waar
Level 2

Likes

0 likes

Total Posts

32 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
_Edgar_van_Waar
Level 2

Likes

0 likes

Total Posts

32 posts

Correct reply

0 solutions
View profile
_Edgar_van_Waar
Level 2

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?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

24-02-2009

Not that I am aware of