Changing the background and font color of the selected item in Button Radios widget

  • criterions
    Asked on July 15, 2016 at 1:51 PM

    Ok, you should now be able to see the Radio Button control on my form

    https://form.jotform.com/61964027280961

     

    Again, I want to change the background and font color for the selected button.

  • John_Benson
    Replied on July 15, 2016 at 2:07 PM

    First, you need to specify the Theme color you'll use for the Button Radios.

    Changing the background and font color of the selected item in Button Radios widget Image 1 Screenshot 50

     This will determine the color of the small up arrow at the bottom of the button. This is actually an image file.

    Changing the background and font color of the selected item in Button Radios widget Image 2 Screenshot 61

    Now, go to the custom CSS tab inside the widget and use paste this code:

    .radios.blue input.checkedButtonRadio + label {
    color: white !important;

    background: green !important;
    }

    As you can see, blue is the theme color which is why there is a .radios.blue in the selector. If you choose a red theme color then it should be .radios.red. The color value is the text color and the background is the background color of the button.

    Changing the background and font color of the selected item in Button Radios widget Image 3 Screenshot 72

    Here's the result:

    Changing the background and font color of the selected item in Button Radios widget Image 4 Screenshot 83

    Hope that helps. Thank you.