Skip to main content
Participant
April 23, 2018
Question

Merging data from forms with text and saving to clipboard or export to .txt

  • April 23, 2018
  • 1 reply
  • 447 views

Hey there

I'm very new with the possibilities of forms.
What I want to do:
I have a PDF with formfields, I like to merge this forms within a command to paste this from clipboard to another system or if 'copy2clipboard' isn't possible to paste the string in an empty form or export to txt.
...is this possible?...if yes: how?

....if someone has other solutions or suggestions: you're welcome!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 23, 2018

It's not possible to copy text to the clipboard using a script.

It is possible to combines the values of all the fields to a single string and then display it in the console window, for example, or export it to a text file. But you can also simply use the built-in Export Form Data command to do it.

What exactly is your end-goal? Do you need the text to be in a specific format?

Participant
April 23, 2018

I want to paste a (complete) command to a shell. The fields containing IP/Service/ports a.s.o.
At the moment we write the command manually and insert the data manually - that's worse...

try67
Community Expert
Community Expert
April 23, 2018

OK, you're not providing many details so I can't give you an exact answer...

Basically you would need to write a script that iterates over all the fields in the file, collects their values and then prints it out to the console window. Try searching around the JavaScript forum. This issue was discussed many times and there are plenty of code examples.