Expand my Community achievements bar.

How do i change the backgrond color of a drop down box.

Avatar

Level 3

I'm creating a form which has a colored background and a drop down box with 5 choices.  The problem is the font color in the drop down box is white and so is the background color of the drop down box so the selections are not visible unless you scroll over them.  I would like the background of the drop down box to match the background of the form. 

Also, can the font size of a selection in a drop down box be different then what is displayed.  The font is set to 35 so it's huge when displayed in the drop down box.  It would be nice if the selections were displayed in the drop down box in size 10 font but displayed on the form once selected as size 35.

Thanks!

Mike

4 Replies

Avatar

Level 7

You can set the background colour with (in formcalc):

$.fillColor = "5,5,5" // obviously changing the numbers to the RGB colour you want

or if it is not going to change just set it in Border tab under Background fill.

For the size of the font - set the dropdown box to size 10 font and then in the exit event of the dropdown list put (in formcalc):

$.font.size = "35pt"

Avatar

Level 3

I tried your suggestion but the font stays the same size.

Here's the file if it helps.

http://www.stagecoacheventcenter.com/pdfs/ept.pdf

Thanks!

Avatar

Level 7

You have your form saved as a static form. Try saving it as it dynamic form and it should work.

Avatar

Level 3

The font changes now but the background color stays white.  When it was saved as static the background color changed but the font wonldn't.

Thanks for you help.