on 07-08-2009 7:57 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.