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

createDataObject in livecycle from a text field value

arvindkumar7
Level 3
Level 3

Hi Experts,

Can anybody help me increating a data object from createDataObject from a text field's value. Text field contents is multiline.

These two simple lines are working great in acrobat console but not when under a livecycle click button event.

var cMyC = "sample string";

this.createDataObject("test.txt",cMyC);

Please suggest.

Regards

Arvind

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

In LiveCycle Designer you have to replace this with event.target to use Acrobat scripting methods.


var cMyC = "sample string";


event.target.createDataObject("test.txt",cMyC);


View solution in original post

0 Replies
radzmar
Correct answer by
Level 10
Level 10

In LiveCycle Designer you have to replace this with event.target to use Acrobat scripting methods.


var cMyC = "sample string";


event.target.createDataObject("test.txt",cMyC);


arvindkumar7
Level 3
Level 3

Thanks radzmar,

It works like a charm, it was a small and stupid mistake from me.

Can you please tell me how to open a attachment with opendataobject.