Forum Moderators: open

Message Too Old, No Replies

Form Input Field Colour - overriding Google

         

BeeDeeDubbleU

10:41 am on May 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am working on an online form and as I understand it Google sets the backgound colour of input fields to yellow when it can autofill the data.

I wanted to set the background colour for mandatory fields but G seems to be over riding this. Is there any way of controlling this?

Setek

1:07 am on May 23, 2007 (gmt 0)

10+ Year Member



My guesses are only theoretical, but you could probably try
!important
. It won't help if they're using inline styles with
!important
already, and IE 6 should overwrite any
!important
with inline styles, but it's worth a shot.

Only other thing I can think of is using Javascript to set the background colour.

Hope that helps :)

encyclo

2:16 am on May 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you talking about the highlighting when using the Google toolbar? If so, this is added outside the context of the parsed markup/CSS, so there is no way to override it that I know of.

BeeDeeDubbleU

8:05 am on May 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes encyclo, that's what I meant and that's what I thought. :(

This is not the first that it has created problems for me. Last month I had a client asking me to "make all the colours of the field backgrounds the same". I told him that I could not do anything about it but I am not sure that he fully understood or believed my explanation.

It is a bit intrusive of Google. One would think that they could come up with a better way of doing this?

Fotiman

3:28 pm on May 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




It is a bit intrusive of Google. One would think that they could come up with a better way of doing this?

I agree. But from their perspective, they're offering a service (autofill) to customers, so they want to ensure that it works. But even so, there should be a way to specify in the form that it should be able to disable autofill. This problem has been around for years and they still haven't fixed it.

BeeDeeDubbleU

8:30 pm on May 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why do they have to change the colours anyway? It's a feature that does not really add any value to the tool.

Fotiman

3:21 pm on May 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's to let the user know "Hey, this field can be filled in with values from the autofill tool!"