Copy link to clipboard
Copied
I am needing to insert a drop down list to my PDF, but rather than a drop down selection of text, I want to fill the box with a particular color: green, yellow, or red. Is there a certain script I need to run or a certain tool for this in Adobe Acrobat?
Not possible with the built-in fields available in Acrobat. The only way I can think of implementing it is with a set of button fields and a custom-made script to show them when the main field is clicked, apply the selection to it when one of them is clicked, and then hide them. This is not a simple task, though.
Copy link to clipboard
Copied
Do you mean that each item in the list has a unique color? If so, it's not
possible.
On Wed, Aug 9, 2017 at 9:44 PM, joshb21464502 <forums_noreply@adobe.com>
Copy link to clipboard
Copied
I have a blank cell on my pdf. All I need is to be able to either fill the cell with green, yellow, or red. There will not be any text in the cell, just want to be able to give an option to mark it green, yellow, or red as an easy indicator for projects. Exactly like this picture, except without text.
Copy link to clipboard
Copied
Not possible with the built-in fields available in Acrobat. The only way I can think of implementing it is with a set of button fields and a custom-made script to show them when the main field is clicked, apply the selection to it when one of them is clicked, and then hide them. This is not a simple task, though.
Copy link to clipboard
Copied
Darn! I think I read a thread that you helped on earlier with this same issue but with text. That a selection of one input would trigger the cell to fill with a particular color. I could simply use the text "r" y", or "g" in the drop down list.
Copy link to clipboard
Copied
Could you help me with the particular script I would need to make that action happen?
Copy link to clipboard
Copied
Yes. You can contact me privately (try6767 at gmail.com) and we could discuss the details, including the price.
try this: it worked for me
var f = this.getField("Dropdown1");
if(event.value == "red"){
f.textColor = color.red;
f.strokeColor = color.red;
f.fillColor = color.red}
else if(event.value == "yellow"){
f.textColor = color.yellow;
f.strokeColor = color.yellow;
f.fillColor = color.yellow}
else if(event.value == "green"){
f.textColor = color.green;
f.strokeColor = color.green;
f.fillColor = color.green}
else if(event.value == "white"){
f.textColor = color.white;
f.strokeColor = color.white;
f.fillColor = color.white}