• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

XML

Participant ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

I want to put a button on a form, that saves the completed form to XML? Can that be done?

TOPICS
PDF forms

Views

674

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 15, 2018 Aug 15, 2018

Not sure... If you want them to be able to do it automatically then they would need to install a script on their machine, yes.

Votes

Translate

Translate
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Not directly. You would need to write a function that generates the XML file yourself.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Thank you, this is what I am looking for.

I had code under a button to print if fields are filled, used else this.print.

So not sure how to do it.

This does not have to check fields, just a button to save as xml.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Want you export the form data or the whole form?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

This has nothing to do with printing. You would need to write a function that iterates over all the fields in the file, generating an XML string using their names and values. Then you write that string to a data object (an attachment) and export it, so the user can save it locally.

This will only work in Acrobat, though. In Reader the best you can do is display the XML string in the console window or a dialog and ask the user to copy it from there, and then paste it into Notepad and save as an XML file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Well I have a button, executes file item....Save As.....so just a step further to have the xml type already chosen?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Ah, you want to export the entire file contents, not just the form data?

If so, then it can be done, but you would need to install a script on the user's local machine to do it, as it requires using the saveAs command.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Hi, so this is like the other script I installed from you. Worked great.....but then I want to distribute this file to many users, that is an issue correct?

Wait, now I do not recall, did we embed that script?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Not sure... If you want them to be able to do it automatically then they would need to install a script on their machine, yes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

Thanks, that is what I need. post pdf, person downloads, fills out, clicks button and it is saved to their local or attached to email as XML.

Will have to then write instructions for them to save as on their own.

Thanks you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2018 Aug 15, 2018

Copy link to clipboard

Copied

LATEST

Isn't XFXF which is a submit option, an XML? Or is that not the question? (This is the submit form options)

Screen Shot 2018-08-15 at 17.56.40.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines