Skip to main content
Participant
January 4, 2019
Resuelto

Is there a way to disable tooltips in forms?

  • January 4, 2019
  • 3 respuestas
  • 10292 visualizaciones

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!!

Este tema ha sido cerrado para respuestas.
Mejor respuesta de try67

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 = "";

}

3 respuestas

Bevi Chagnon - PubCom.com
Legend
June 9, 2022

Please know that when tooltips are removed (using any method suggested below), you are eliminating a critical way for those with vision disabilities (blindness and low-vision) to know what to type inside the form field. Tooltips are required for accessibility.

 

I'd love to see someone develop a better way to hide the tooltips, rather than remove them entirely. This would allow the end user to hide them if they are sighted and don't need the tooltips, while keeping the tooltips in the form for another user who is blind.

 

|&nbsp;&nbsp;&nbsp;&nbsp;Bevi Chagnon &nbsp;&nbsp;|&nbsp;&nbsp;Designer, Trainer, &amp; Technologist for Accessible Documents ||&nbsp;&nbsp;&nbsp;&nbsp;PubCom |&nbsp;&nbsp;&nbsp;&nbsp;Classes &amp; Books for Accessible InDesign, PDFs &amp; MS Office |
try67
Community Expert
Community Expert
June 9, 2022

It should be possible to add a check-box to the first page of a field, enabling tooltips for all fields when ticked and disabling them when unticked, using a custom-made script.

Inspiring
October 9, 2020

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

try67
Community Expert
Community Expert
October 9, 2020

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

Inspiring
October 9, 2020

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

try67
Community Expert
try67Community ExpertRespuesta
Community Expert
January 4, 2019

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 = "";

}

Participant
January 4, 2019

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