Appointment Field: Change hover color.

  • Maynard_Ryan
    Asked on September 4, 2024 at 1:50 PM
  • Maynard_Ryan
    Replied on September 4, 2024 at 1:57 PM

    Another thing is that the calendar days are yellow (color I want) when im in the editor but when I save and view the live page (https://solar.conversionhero.co/discovery-call) the calendar *days* are black

    Appointment Field: Change hover color Screenshot 30Appointment Field: Change hover color Screenshot 41

  • Wilson JotForm Support
    Replied on September 4, 2024 at 2:36 PM

    Hi Ryan,

    Thanks for reaching out to Jotform Support. For Appointment Field. You can inject the below CSS Code to your form to change the hover background color of month numbers:

    /* Change appointment field calender dates hover background color -#15387281 */
    .calendarDay:hover {
      background-color: #32cd32;
    }
    /* Code ends here */

    Also, you can inject the below CSS Code to your form to change the time slots' border and hover color:

    /* Change appointment field calendar timeslots border and hover background color -#32cd32 */
    .appointmentSlot.slot {
      border-color: #32cd32;
    }
    .appointmentSlot.slot:hover {
      background-color: #32cd32 ! important;
    }
    /* Code ends here */

    Change the color code to the color you prefer.

    Let me show you how to add custom CSS to your form:

    1. In the Form Builder, select the paint roller icon in the upper-right corner.A screenshot of Form Builder with an arrow pointing to the paint roller icon    to open Form Designer Screenshot 52 Screenshot 20 Screenshot 20 Screenshot 20
    2. In the Form Designer panel on the right, go to Styles at the top.A screenshot of Form Builder with an arrow pointing to the Styles tab in the Form Designer pane Screenshot 63 Screenshot 31 Screenshot 31 Screenshot 31
    3. Scroll down to Inject Custom CSS and enter your CSS code in the textarea — all changes are saved automatically.The Inject Custom CSS field in Jotform Form Builder Screenshot 74 Screenshot 42 Screenshot 42 Screenshot 42

    We also have a guide about How to Inject Custom CSS Codes that you can check out.

    Check out the screencast below to see my results:
    Appointment Field: Change hover color Screenshot 53

    Give it a try and let us know how it goes.

  • Maynard_Ryan
    Replied on September 4, 2024 at 2:54 PM

    Thanks Wilson

    One last thing -

    How do I change the days from black to another color? I'm still learning to get help from ChatGPT on this stuff but still having problems with changing the static days

    Appointment Field: Change hover color Screenshot 20

  • Joeni JotForm Support
    Replied on September 4, 2024 at 5:53 PM

    Hi Ryan,

    To change the color of the static days of the Appointment field. You need to Inject a CSS Code but first please remove this CSS Code in your form to avoid getting an error:

    [data-css-selector="id_22"] select.pickerMonth {
      color : #f4f4f4;
    }
    [data-css-selector="id_22"] div.selectedDate {
      background-color : #e8e8ea;
    }
    [data-css-selector="id_22"] div.dayOfWeek {
      background-color : #454955;
      color : #ffffff;
    }
    .calendarDay.isToday {
      color : #FFD700;
    }
    .calendarDay {
      color : #FFD700;
    }
    .appointmentSlot.slot {
      color : #FFD700;
      border : 5px none #FFD700;
      background : #0d162a;
    }
    .appointmentSlot.slot.active {
      color : #050101;
    }

    Let me show you how:

    1. In Form Builder, click the Paint Roller icon and go to the Style tab.
    2. Scroll down to the Inject Custom CSS input box and remove the CSS Code above.

    Appointment Field: Change hover color Screenshot 40 After that, you can now add the CSS Code to fix the Appointment Field. Let me show you how:

    1. In the Style tab, go to the Inject Custom CSS input box and add this updated CSS Code:
    [data-css-selector="id_7"] select.pickerMonth {
      color : #ffffff;
    }
    [data-css-selector="id_22"] select.pickerMonth {
      color : #f4f4f4;
    }
    [data-css-selector="id_22"] div.selectedDate {
      background-color : #e8e8ea;
    }
    [data-css-selector="id_22"] div.dayOfWeek {
      background-color : #454955;
      color : #ffffff;
    }
    .appointmentCalendar .calendarDay {
      color : #FFD700 !important;
    }
    .appointmentSlot.slot {
      position: relative;
      color : #FFD700;
      border : 5px none #FFD700;
      background : #0d162a;
    }

    Appointment Field: Change hover color Screenshot 51 Check out the screencast of the result below:

    Appointment Field: Change hover color Screenshot 62 Give it a try and let us know how it goes.

Your Answer