Expand my Community achievements bar.

SOLVED

Want to omit field borders from printing

Avatar

Level 7

I have done this before successfully on a text field. Now I would like to do this on a Date/Time Field, but I don't know how to ref

erence the field. For the Text Field, I've used textField.

And how do I find out these object names for other types of fields.

Thanks,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

One way would be to have the following in the prePrint event:

var vName = this.name.toString();

xfa.resolveNode(vName + ".ui.dateTimeEdit.border.edge").presence = "invisible";

/* Check the type of object and change the .ui reference:

     Date field =      #dateTimeEdit 

     Dropdown =      #choiceList 

     Checkbox =      #checkButton 

     Text field =      #textEdit 

     Numeric field =     #numericEdit

*/

and then a corresponding script in the postPrint setting the presence back to "visible".

The ui properties for other object types are commented out below the script.

You would think that this.border.edge.presence = "invisible"; would work, but it doesn't.

Example here: https://acrobat.com/#d=AwBYYQTNK9WXjSAhp385zQ

Good luck,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

One way would be to have the following in the prePrint event:

var vName = this.name.toString();

xfa.resolveNode(vName + ".ui.dateTimeEdit.border.edge").presence = "invisible";

/* Check the type of object and change the .ui reference:

     Date field =      #dateTimeEdit 

     Dropdown =      #choiceList 

     Checkbox =      #checkButton 

     Text field =      #textEdit 

     Numeric field =     #numericEdit

*/

and then a corresponding script in the postPrint setting the presence back to "visible".

The ui properties for other object types are commented out below the script.

You would think that this.border.edge.presence = "invisible"; would work, but it doesn't.

Example here: https://acrobat.com/#d=AwBYYQTNK9WXjSAhp385zQ

Good luck,

Niall

Avatar

Level 7

That's what I needed.

Thanks,

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065