Avatar

Level 5

Hi,

I don't think you can add a watermark in that manner to a form designed in LiveCycle as the watermark is added to an Optional Content Group and I don't think these can be created in LC forms ( maybe someone else can confirm that?)

As to your code this call

var myDoc = event.target.documentFileName;

returns a string containing the name of the document, not the document itself.

to get the access to the document object you would change that to

var myDoc = event.target

Although as stated above I do not think you can add a watermark to a LC Form in this manner.

Hope this helps

Malcolm