Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Remove an object from PDF-generated XML file

Avatar

Level 4

Hi,

In a stage of user workflow of my PDF, the user presses a submit button that sends XML data to an address. There's an image field that has hundreds of lines of XML code that has no need to sent.  In fact, by the time this submit button is pressed, the image field is already "hidden", but of course it remains on the form.

Is there any sort of visibility or access property that will supress an object enough that it doesn't transfer with XML?  How about dynamically deleting a field on the user-end?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

One solution, use an ImageField object instead of an Image object. Then go to the Object > Binding palette and for the binding select No Data Binding (or None, depending on your version of LC Designer).

Because you are now using an ImageField you will need one line of code in it's docReady event (JavaScript):

this.access = "readOnly";

The lines in the XML data file contain the image in Base64 format.

Hope that helps,

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

One solution, use an ImageField object instead of an Image object. Then go to the Object > Binding palette and for the binding select No Data Binding (or None, depending on your version of LC Designer).

Because you are now using an ImageField you will need one line of code in it's docReady event (JavaScript):

this.access = "readOnly";

The lines in the XML data file contain the image in Base64 format.

Hope that helps,

Niall