cancel
Showing results for 
Search instead for 
Did you mean: 

Validate PrePrint

Former Member
0 Kudos

Hi experts

How stop form users from printing before required fields are completed.

(I have AdobeReader 9.0 and LiveCycle 8.1)

I tried add "validate prePrint" code to XML source:

<config xmlns="http://www.xfa.org/schema/xci/2.7/">

<agent name="designer">

....

</agent>

<present>

<!-- [0..n] -->

*<validate>prePrint</validate>*

<pdf>

<!-- [0..n] -->

<version>1.7</version>

</pdf>

<common>

....

</common>

</present>

</config>

After Activate I get code like this:

<config xmlns="http://www.xfa.org/schema/xci/2.7/">

<agent name="designer">

....

</agent>

<present>

<!-- [0..n] -->

<pdf>

<!-- [0..n] -->

<version>1.7</version>

</pdf>

<common>

....

</common>

<validate>prePrint</validate>

</present>

</config>

It works in preview PDF only (in LiveCycle),

but when I run A Form it does not work.

How can i solve this problem?

Thanks.

Larissa.

Edited by: Larissa Stroganov on Jul 8, 2009 9:03 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Larissa,

Use the below code in Print Button,

moFlashTimerID = app.setInterval(

"var f = this.getField('GetAcroFormFieldName(oField)');" +

"if (color.equal(f.fillColor, color.red))" + "{ f.fillColor = " + moAcroFieldFillColor.toString() + " ; }"

"else" + "{ f.fillColor = color.red; }", 500);

By

Parthi

Former Member
0 Kudos

Hi Parthi

I don't want to Use by "Print Button".

I want to print with standard button of ADOBE FORM( CTRL+P)

And I need to stop printing .

Any Ideas?

Thanks

Larissa