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

Mandatory Red Boxes

New Here ,
Jun 27, 2019 Jun 27, 2019

I'm trying to fill in a form in using Adobe but the mandatory red boxes do not change when I enter the details. Anyone know how to change this.

TOPICS
PDF forms
1.9K
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 ,
Jun 27, 2019 Jun 27, 2019

No, that's just how it works. The red border appears no matter if the field is filled in or not.

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 ,
Jun 27, 2019 Jun 27, 2019

When I try to email a copy I get this message:

At least one required field was empty. Please fill in the required fields (highlighted) before continuing.

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 ,
Jun 27, 2019 Jun 27, 2019

That means you haven't filled-in all of them, but the red color will still appear on all of them, the filled-in ones and the empty ones.

If this is done using a script it's possible to let the user know which exact fields still need to be filled in, and even "jump" to one of them.

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 ,
Jun 27, 2019 Jun 27, 2019

I'm filling in a form I'm trying to send to someone. I've gone through it several times and I'm sure all the boxes are filled in. Thats what is confusing me. Hence I thought the red boxes had something to do with it. Super annoying

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 ,
Jun 27, 2019 Jun 27, 2019
LATEST

You can run this code from the JS Console to find out which fields you're still missing:

var doc = this;

var emptyFields = [];

for (var i=0; i<doc.numFields; i++) {

    var f = doc.getField(doc.getNthFieldName(i));

    if (f!=null && f.type!="button" && f.required && f.valueAsString==f.defaultValue) {

        emptyFields.push(f.name);

    }

}

if (emptyFields.length>0) {

    app.alert("You must fill in the following fields:\n" + emptyFields.join("\n"));

} else app.alert("All good!",3);

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