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!
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}