Copy link to clipboard
Copied
Hello,
i am submitting form fields as XML format. According to documentation empty fields are submitted. This works for checkboxes but not for text fields. If they are empty they are not submitted, but they are needed by our software.
How can this be solved?
Best regards
Thomas
Copy link to clipboard
Copied
Try the "submit a form" action with XFDF.
Copy link to clipboard
Copied
Really noone has an idea?
Copy link to clipboard
Copied
You can use a script to insert a single space in all the empty fields before submitting the form, or you can submit them in another format.
Copy link to clipboard
Copied
Thanks. So i will accept that Acrobat just doesn't work as documented in that place. We will change our software, the script will probably be the simplest solution.
Best regards
Thomas
Copy link to clipboard
Copied
Solve it in your software.
Copy link to clipboard
Copied
Even if it is a bug and Adobe fix it, you will probably have to deal with end-users who have not upgraded. So making your software more forgiving is the best answer.
Copy link to clipboard
Copied
Did you enable the entry "Include Empty Fields" ?

Copy link to clipboard
Copied
Thanks for the answer. I have never seen this dialog. The form is posted via javascript:
this.submitForm({
cURL: "http://127.0.0.1:31337/document",
cSubmitAs: "XML"
});
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks, i have also tried this with no effect.
But i think it would not be too much effort to implement the javascript mentioned above to solve the problem ![]()
Copy link to clipboard
Copied
Try the "submit a form" action with XFDF.
Copy link to clipboard
Copied
Thank you, that works! Now we have the empty fields. Its different because now every tag is "<field>" but the structure and attributes are correct so we can work with this solution.
Best regards
Thomas
Copy link to clipboard
Copied
Actually, that probably won't work. The documentation of this property says:
Note: If data is submitted as XDP, XML, or XFD (see the cSubmitAs
parameter, below), this parameter is ignored. All fields are submitted,
even fields that are empty. See aFields.
So I would say it's a bug.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more