Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
No, that's just how it works. The red border appears no matter if the field is filled in or not.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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);
Find more inspiration, events, and resources on the new Adobe Community
Explore Now