Copy link to clipboard
Copied
Hello!
Is there a way to highlight a field or fields in Acrobat Pro for informational purposes that does not print when the document is printed or saved? I am interested in using the highlight feature to bring attention to areas that should not be overlooked.
I appreciate your responses or an alternate way to achieve this goal.
Thank you!
Copy link to clipboard
Copied
Do you mean the highlight does not print, or the field does not print? Do you want the field highlighted until text is entered, or do you want it to remain highlighted, just not print the highlight?
Copy link to clipboard
Copied
It would be wonderful for the field to be highlighted until text is entered. The highlight should not print.
Thank you so much for helping me clarify.
Copy link to clipboard
Copied
Enter the following as a custom format script:
if(event.value)
{event.target.fillColor=color.transparent}
else
{event.target.fillColor=color.yellow}
Copy link to clipboard
Copied
Thank you so much! It is perfection. Many thanks to you.
Copy link to clipboard
Copied
I have one additional question: does this script work on dropdown menus? Is there a workaround for that? It does not appear to work on the dropdown field.
Thank you!
Copy link to clipboard
Copied
Yes, it works with dropdowns. The reason it probably isn't working on your dropdowns is because you manually entered a space for the first dropdown selection. The first line of the script, if(event.value), means if the field has a value. A space is a value so it doesn't work. You have two options to fix this:
1) You can set the dropdown items using a script in the console like this:
this.getField("Dropdown").setItems(["", "A", "B", "C"]) so the first item is an empty string (no value). If your dropdowns have long list of items you save time with this dropdown filler tool (*purchase cost*) I developed.
2) Modify the script for your dropdown fields to this:
if(event.value==" ")
{event.target.fillColor=color.yellow}
else
{event.target.fillColor=color.transparent}
Copy link to clipboard
Copied
This is wonderful! And how did you know I had a space in the first field? Lol.
Many thanks to you!
Copy link to clipboard
Copied
You can't set a null value in a dropdown unless you use a script. The workaround is to put a space, but a space is a value.