Help with adding a button to copy a .txt file in to a text field

Avatar

Avatar

ant_ric

Avatar

ant_ric

ant_ric

26-06-2015

Hello,

sorry if this is a very simple thing to do but its been a long time since I last used livecycle and javascript and my knowledge of javascript is not very good.

I am trying to insert text from a .txt file in to a text field in a form, I think I can use importTextData but I have no idea how to add this to a button?

Thank you in advance for any help on this.

Rick

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

PDFGuru

Avatar

PDFGuru

PDFGuru

25-08-2015

On Click Event of a Button, type following script:

xfa.host.importData();