Skip to main content
Participant
February 11, 2020
Question

Combo box selecting answers

  • February 11, 2020
  • 2 replies
  • 770 views

I have created a fillable pdf form in Adobe Acrobat Pro, which has a combo box with multiple answer selection. Each answer has a colour associated with it (eg Yes - red, No - green).

When I've tested it, I can see the colours on the selected answer, however when colleagues have tested this, selected an answer, the colour doesn't show permanently, only if they hover over it.

Any suggestions as to how to keep the coloured cell visible and be able to save it?

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
February 11, 2020

How are the colors applied to the field?  Post the script.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 12, 2020

var f = event.target;
var fv = event.value;

if (fv == "Yes - Dev IA and RA required") {
f.fillColor = color.red;
}
else if (fv == "No") {
f.fillColor = color.green;
}
else {
f.fillColor = color.transparent;
}

Bernd Alheit
Community Expert
Community Expert
February 12, 2020

Where does you use the script?

Bernd Alheit
Community Expert
Community Expert
February 11, 2020

Is in the preferences form highlighting enabled?

Participant
February 11, 2020

This is not enabled as we do not want a colour to illustrate the fact that there is a drop down list.  The arrow is enough to illustrate this

Bernd Alheit
Community Expert
Community Expert
February 11, 2020

OK