Highlighted

Is there a way to disable tooltips in forms?

Community Beginner ,
Jan 04, 2019

Copy link to clipboard

Copied

Is there a way to disable tooltips in forms?  The prepopulated ones do not add value in my forms and I'd rather not have to delete each one individually.  Thanks!!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

There are no pre-populated tooltips when you add a form field, unless you use the fields detection wizard.

Either way, You can remove all of them at once by running this code:

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

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

    if (f==null) continue;

    f.userName = "";

}

TOPICS
PDF forms, Windows

Views

1.4K

Likes

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

Is there a way to disable tooltips in forms?

Community Beginner ,
Jan 04, 2019

Copy link to clipboard

Copied

Is there a way to disable tooltips in forms?  The prepopulated ones do not add value in my forms and I'd rather not have to delete each one individually.  Thanks!!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

There are no pre-populated tooltips when you add a form field, unless you use the fields detection wizard.

Either way, You can remove all of them at once by running this code:

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

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

    if (f==null) continue;

    f.userName = "";

}

TOPICS
PDF forms, Windows

Views

1.4K

Likes

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
Jan 04, 2019 1
Most Valuable Participant ,
Jan 04, 2019

Copy link to clipboard

Copied

There are no pre-populated tooltips when you add a form field, unless you use the fields detection wizard.

Either way, You can remove all of them at once by running this code:

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

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

    if (f==null) continue;

    f.userName = "";

}

Likes

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
Reply
Loading...
Jan 04, 2019 0
Community Beginner ,
Jan 04, 2019

Copy link to clipboard

Copied

thank you!  We are using the detection wizard for better alignment.  I'll try this script and see if it works!

Likes

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
Reply
Loading...
Jan 04, 2019 0
New Here ,
Oct 09, 2020

Copy link to clipboard

Copied

Hi, I'm using Acrobat Pro DC and need to remove the tooltips. I went to Document Javascripts, added a function and pasted in the code that you provided. For some reason, the tooltips are still there. 

Any ideas?

thanks,

Elo

Likes

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
Reply
Loading...
Oct 09, 2020 0
Most Valuable Participant ,
Oct 09, 2020

Copy link to clipboard

Copied

Run the script from the JS Console, or from a button field.

Likes

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
Reply
Loading...
Oct 09, 2020 0
New Here ,
Oct 09, 2020

Copy link to clipboard

Copied

Ok, I typed CTRL+J to open the JavaScript Debugger, pasted the script code in, typed CTRL+Enter and got this error:

 

SyntaxError: syntax error
1:Console:Exec
undefined

Likes

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
Reply
Loading...
Oct 09, 2020 0
New Here ,
Oct 09, 2020

Copy link to clipboard

Copied

Hi Try67,

Well, even though I got an error, the tooltips are cleared so I think I'm good. But I am curious why it worked after getting an error. I also tried this in the console: RemoveTooltips(); and the response was "undefined".

 

Elo

Likes

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
Reply
Loading...
Oct 09, 2020 0
Most Valuable Participant ,
Oct 09, 2020

Copy link to clipboard

Copied

You're doing something wrong, but I'm not sure what. Anyway, "undefined" is not an error... The opposite, actually. It means the code executed correctly, without a return value. Where did you get RemoveTooltips() from, exactly?

Likes

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
Reply
Loading...
Oct 09, 2020 0
eloeso LATEST
New Here ,
Oct 09, 2020

Copy link to clipboard

Copied

Ah! So it did run correctly. For RemoveTooltips(), I went to Document JavaScripts and added a script with that name that runs your code.

Likes

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
Reply
Loading...
Oct 09, 2020 0