I have a from that the fields will not go translusent on for the background

  • Profile Image
    Kuyperconsulting
    Asked on March 29, 2015 at 11:58 PM

    Why will my background not show through the fields?

  • Profile Image
    cyberhopper
    Answered on March 30, 2015 at 02:56 AM

    Hi,

    The reason the background does not show through the fields is because the active form fields and the error highlights use the standard CSS color codes without transparency support.

    In order to achieve the desired transparency behavior you will have to use the rgba color approach,

    rgba(224, 71, 71, 0.07), the first are the color values and 0.07 represents the transparency levels 0 being totally transparent and 1 being opaque.

    inject the following CSS codes into your form under setup&embed->Preferences->Form styles.

    .form-line-active{
        background-color: rgba(224, 71, 71, 0.07) !important;
    }
    .form-line-error {
        background-color: rgba(224, 71, 71, 0.07) !important;
    }

     

    The !important tag is to prevent other similar colors styles from overriding the color.

    Test the output

    I tested the above on your form using firebug (see screenshot)