How can I style my date picker with a few nice colors?

  • localwanderings
    Asked on June 8, 2020 at 9:48 PM

    I want to change the style of my date picker widget, for instance the blue color once a date is selected.

    Thanks

    Jotform Thread 2376360 Screenshot
  • Richie JotForm Support
    Replied on June 9, 2020 at 5:04 AM

    You can use custom CSS to edit your date picker field .

    Here is a sample CSS code

    .today{
    background-color:red!important;
    }


    How can I style my date picker with a few nice colors? Image 10+

    Please give it a try and let us know how it goes.

  • localwanderings
    Replied on June 9, 2020 at 1:18 PM

    Thanks Richie - what I'm hoping to do is change the color of the selected date, not today's date.

    Can you help me with that?

  • Richie JotForm Support
    Replied on June 9, 2020 at 2:45 PM

    I'm not sure I understood your requirements correctly.

    The widget only selects/highlights the current date.

    To clarify, do you want to change the date color when hovered over?

    How can I style my date picker with a few nice colors? Image 10

    Looking forward for your response.

  • localwanderings
    Replied on June 9, 2020 at 3:07 PM

    Hi Richie,


    I switched to the appointment widget and I'd like to change to blue color for a lighter one: #a6cdcd

    How may I do this?


    Also there is a large space between the times and the timezone. Can I remove it or remove altogether the timezone info?


    Thanks


    1591729551Screen Shot 2020 06 09 at 11 Screenshot 10

  • VincentJay
    Replied on June 9, 2020 at 7:43 PM

    Please add this custom CSS code: 

    .appointmentSlot {

        border: 1px solid #a6cdcd;

        color: #a6cdcd;

    }

    To add it to your form, please check this guide: https://www.jotform.com/help/108-Adding-Custom-CSS-in-JotForm

    Result:

    1591746168gadexa Screenshot 10

  • localwanderings
    Replied on June 9, 2020 at 7:48 PM

    Great thank you!

    One last thing, how to change the color of the selected date/time?

    1591746502Screen Shot 2020 06 09 at 4 Screenshot 10

  • roneet
    Replied on June 9, 2020 at 11:42 PM

    Could you please inject the following code:

    .appointmentFieldRow.forSelectedDate {
    background-color: red!important;
    }
    .appointmentSlot.active {
    background-color: red!important;
    }

    Let us know how it goes.

    Thanks.