Skip to main content
Themartymac
Participant
June 14, 2019
Pregunta

Does anyone have a script to make the default drop-down list selection non-printing ghost text?

  • June 14, 2019
  • 1 respuesta
  • 747 visualizaciones

Does anyone have a script to make the default drop-down list selection non-printing ghost text?  I.e. it makes it essentially placeholder only, and only prints if a list selection is chosen.  I have been using these scripts for text fields with good results, but they won't seem to take on drop-downs. https://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q195078.aspx

Thanks,

Marty

Este tema ha sido cerrado para respuestas.

1 respuesta

try67
Community Expert
Community Expert
June 14, 2019

You can use a script to make the field non-printable (but still visible on the screen) when the default value is selected, and printable if another value is selected. Something like this (as the custom validation script):

event.target.display = (event.value==event.target.defaultValue) ? display.noPrint : display.visible;

Themartymac
Participant
June 17, 2019

This seems to work perfectly.

Thanks!