Struggling to run a script to change colours in a drop down list
Hi, I am putting together an order form in PDF format using Acrobat DC. I have a series of drop-down lists in which I need the background colour to change based on which answer is selected from the dropdown. I have tried to run a basic script, a custom validation script, but it's just not working!
Any advise, please?
Script :-
if (event.value=="New")
event.target.fillColor = color.red;
else if (event.value=="Renewal")
event.target.fillColor = color.magenta;
else if (event.value=="Set Up Only")
event.target.fillColor = color.yellow;
else
event.target.fillColor = color.transparent;
