Single Choice: Button is barely visible when selected

  • rtolmach
    Asked on April 1, 2024 at 7:49 PM


    Radio buttons on our form, such as this question

    "Is there someone else who is in charge of student involvement . . ."

    are barely visible when selected. Just a grey shadow on the circle.

    How do we make those visible with typical styling?


    Thanks

    Robert

  • Sonnyfer JotForm Support
    Replied on April 1, 2024 at 8:56 PM

    Hi Robert,

    Thanks for reaching out to Jotform Support. I'm sorry you're having trouble with the visibility of your selected radio buttons. I checked your form and see that it's the same case for all of your Single Choice fields on your form. You can inject the below CSS Code to fix it. Keep in mind that you can change the color to your liking.

    /* Change Single Choice option's background when selected -#13470791 */
    .form-radio+label:after, .form-radio+span:after {
      background: #2C3344 ! important;
    }
    /* Code ends here */

    It's really easy to do, let me show you how:

    1. In Form Builder, click on the paint roller icon.A screenshot of Form Builder with an arrow pointing to the paint roller icon    to open Form Designer Screenshot 20 Screenshot 20
    2. Select the Styles tab.A screenshot of Form Builder with an arrow pointing to the Styles tab in the Form Designer pane Screenshot 31 Screenshot 31
    3. Scroll down through Inject Custom CSS and enter your CSS code.The Inject Custom CSS field in Jotform Form Builder Screenshot 42 Screenshot 42

    That's it. Here's what it should look like afterward:

    Single Choice: Button is barely visible when selected Image 1 Screenshot 53

    Here's also a link to my demo form. Feel free to clone it to your account if you wish.

    Let us know if you need any more help.

  • rtolmach
    Replied on April 4, 2024 at 12:05 AM

    That worked for radio buttons, but not for checkboxes, such as the question:


    Type of Organization. Please check all that are applicable. You can then provide more specific info below.*


    Thanks

  • William JotForm Support
    Replied on April 4, 2024 at 2:15 AM

    Hi Robert,

    Thanks for getting back to us. I checked your injected CSS codes and noticed that there is this part that's causing your checkbox to appear having a white background when ticked:

    Single Choice: Button is barely visible when selected Image 1 Screenshot 60

    You can remove this or change the color for this if you prefer.

    Another way of styling this is through the Advanced Form Designer. Here's how:

    1. While on the Form Designer panel, click the Advanced Designer button
      Single Choice: Button is barely visible when selected Image 2 Screenshot 71
    2. Next, you can select your checkbox element, and then on the design panel on the right, you can click on the template and the color.
      Single Choice: Button is barely visible when selected Image 3 Screenshot 82
    3. On the radio/checkbox button template, you will notice the variety of styles available after you click it
      Single Choice: Button is barely visible when selected Image 4 Screenshot 93
    4. Once you're done with editing your form, you can click the Save button on the upper-left part of the page and close it by clicking the close button on the top-left part (just above the save button)
      Single Choice: Button is barely visible when selected Image 5 Screenshot 104

    Let us know if you have more questions or need more help.

  • rtolmach
    Replied on April 15, 2024 at 4:32 PM

    Those instructions (the first option, for deleting some CSS) are incorrect. When I tried it, it turned the background behind the 'required' asterisk black instead of the checkboxes. See image below. I changed black back to white.


    Single Choice: Button is barely visible when selected Image 1 Screenshot 20

  • rtolmach
    Replied on April 15, 2024 at 4:34 PM

    Your second approach looks as if it might need to be done for each element with checkboxes, rather than global to the form. Can't really tell.

    thanks

  • Lorenz JotForm Support
    Replied on April 15, 2024 at 9:57 PM

    Hi Robert,

    Thanks for getting back to us. You can add the CSS code below into your form, it should target all checkbox elements:

    /* Change checkbox element's selected option background color*/
    .form-checkbox:checked+label:after, .form-radio:checked+label:after {
    background: #2C3344 ! important;
    }
    /* end */


    Check this out:

    Single Choice: Button is barely visible when selected Image 1 Screenshot 20

    Give it a try and let us know if there's anything else we can help you with.

  • rtolmach
    Replied on April 16, 2024 at 12:26 PM

    Thanks

    I wish jotform allowed control with menus instead of forcing us to deal with CSS!

 
Your Answer