Custom CSS: How do i change the width of the date picker Field?

  • tommichaud007
    Asked on April 12, 2025 at 9:18 AM

    How do i change the width of the date picker Field?

  • Dayron JotForm Support
    Replied on April 12, 2025 at 10:39 AM

    Hi Thomas,

    Thanks for reaching out to Jotform Support. You can change the width of the Date Picker field using CSS. Let me help you do that:

    1. Copy the code below.

    [data-css-selector="id_10"] {
        width : 180px !important; /*adjust the width depending on your needs*/
    }
    [data-css-selector="id_12"] {
        width : 160px !important;
    }

    2. Then, in Form Builder, click on the Paint Roller icon on the right side of the page to open Form Designer.

    3. Now, in the Form Designer menu, click on the Styles tab, scroll down and paste the code into the Inject CSS Code box. That’s it. The code is automatically saved.

    Custom CSS: How do i change the width of the date picker Field? Image 1 Screenshot 30 Check out the screencast below to see my results:

    Custom CSS: How do i change the width of the date picker Field? Image 2 Screenshot 41 You can also check out our guide about How to Inject Custom CSS Codes for more information.

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

  • tommichaud007
    Replied on April 12, 2025 at 11:00 AM
    Dayron:
    In the code you reference "id_10". Where did you find the id?
    Thanks,
    Tom
    Thomas Michaud
    Cell #: (405) 474-0492
    Email: tommichaud007@gmail.com
    ...
  • Dayron JotForm Support
    Replied on April 12, 2025 at 12:08 PM

    Hi Thomas,

    You can find the field's IDs in the field properties. Let me show you how:

    1. In the Form Builder, select the form element’s Gear icon to open properties.
    2. In the properties panel, go to Advanced at the top.
    3. Scroll down to the bottom and expand Field Details.
    4. Copy the value in the Field IDs field.

    Steps to get the form element's field IDs in Form Builder Screenshot 20What also works is selecting the field in the Advanced Designer and then using that selector to customize the field, or simply adding the CSS directly in the Advanced Designer as well. Let me walk you through it:

    1. In the Form Builder, click the Form Designer (paint roller icon) on the right side of the page.

    Paint Roller Icon to open the Form Designer in Jotform Builder Screenshot 31

    2. In the Form Designer, click the Advanced Designer button at the bottom part to load your form into the Advanced Designer page.

    Advanced Designer Button to open the Advanced Designer Page in Jotform Builder Screenshot 42In the CSS tab, you can input or encode your custom CSS codes to further personalize your form’s design. Clicking on a form field twice will select that individual field for editing. Clicking on a form field once will select all similar fields for editing. Take a look at the screencast below:

    Custom CSS: How do i change the width of the date picker Field? Image 1 Screenshot 53 Let us know if you have any other questions.

Your Answer