Change BOX color depending on value – Adobe Acrobat JavaScript

I don’t have a lot of experience with programming. I did a couple of semesters of C++ and that’s about it.
This is the first time I have to use JavaScript for work.

I’m supposed to make a PDF schedule document.
The people I’m working with are technologically impaired, so I’m trying my best to make it as easy as possible to edit the document.
It’s supposed to be a PDF file schedule. The schedule should either have a

  1. Drop down menu of ONLY colours (no text) to change the box into another colour
    example (no text)

or

  1. Depending on the text you put in the box will change the colour.
    I’ve tried doing this with the form options that Acrobat has available, but it’s impossible. I could make a text drop down menu, but I can’t do anything with the colour of the box. example (keep text)

I thought Java would be the best option.