-
tommichaud007Asked on April 15, 2025 at 11:26 AM
In the form above, how do I change the width of the Date Picker widget?
-
ElsonR Jotform SupportReplied on April 15, 2025 at 12:34 PM
Hello tommichaud007,
Thanks for reaching out to us for help. I understand the issue. Let me look into it and get back to you with a solution.
We really appreciate your patience and understanding while we’re looking into this.
-
ElsonR Jotform SupportReplied on April 15, 2025 at 3:49 PM
Hi tommichaud007,
You can change the width in the field properties. Let me show you how:
- In the Form Builder, select the form element’s Gear icon to open properties.
- In the properties panel, go to General at the top.
- Scroll down to the bottom to the Width field
- Insert your desired width.
-
tommichaud007Replied on April 16, 2025 at 3:49 AM
Elson:
Watch what happens if you "shrink" the field.
Thanks
Tom
-
Manilene JotForm SupportReplied on April 16, 2025 at 8:52 AM
Hi Tom,
When you shrink the Date Picker field in JotForm, it aligns side by side with other shrunk fields, allowing for a more compact layout. However, shrinking the field doesn't actually reduce the width of the Date Picker input itself it primarily changes its positioning within the form. As a result, the calendar may still appear wide, and the spacing might look unbalanced or inconsistent with the rest of the form’s design.
To actually change the width you need to inject CSS code into the form. Let me show you:
- In Form Builder, click on the roller-paint icon (Form Designer) located in the upper right corner
- Click on the Styles tab
- In the Inject Custom CSS section, insert/paste the code below and click on Save
li[data-type="control_datetime"] {
width: 400px !important;
}
-
tommichaud007Replied on April 16, 2025 at 10:01 AM
Will this change the width of all Date Pickers on the form?
-
Manilene JotForm SupportReplied on April 16, 2025 at 10:21 AM
Hi Tom,
Yes, injecting the CSS code as shown will change the width of all Date Picker fields on the form, not just one specific Date Picker. This is because the CSS targets the Date Picker field type globally within the form using the selector li[data-type="control_datetime"]. Checkout my screencast below:
Let us know if you have any other questions.
Your Answer
Something Went Wrong
An error occurred while generating the AI response. Please try again!