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

How to submit empty text fields

New Here ,
Mar 14, 2018 Mar 14, 2018

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

TOPICS
PDF forms
1.3K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 27, 2018 Mar 27, 2018

Try the "submit a form" action with XFDF.

View solution in original post

Translate
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
New Here ,
Mar 26, 2018 Mar 26, 2018

Really noone has an idea?

Translate
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 ,
Mar 27, 2018 Mar 27, 2018

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.

Translate
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
New Here ,
Mar 27, 2018 Mar 27, 2018

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

Translate
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
LEGEND ,
Mar 27, 2018 Mar 27, 2018

Solve it in your software.

Translate
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
LEGEND ,
Mar 27, 2018 Mar 27, 2018

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.

Translate
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 ,
Mar 27, 2018 Mar 27, 2018

Did you enable the entry "Include Empty Fields" ?

Bild20.jpg

Translate
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
New Here ,
Mar 27, 2018 Mar 27, 2018

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"

});

Translate
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 ,
Mar 27, 2018 Mar 27, 2018

Use:

this.submitForm({

cURL: "http://127.0.0.1:31337/document",

cSubmitAs: "XML",

bEmpty: true

});

Translate
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
New Here ,
Mar 27, 2018 Mar 27, 2018

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

Translate
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 ,
Mar 27, 2018 Mar 27, 2018

Try the "submit a form" action with XFDF.

Translate
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
New Here ,
Mar 27, 2018 Mar 27, 2018
LATEST

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

Translate
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 ,
Mar 27, 2018 Mar 27, 2018

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.

Translate
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