Skip to content

Conversation

@samarth93
Copy link

Fixes #2669

Custom Date and Datetime fields on the new ticket form were rendering as plain text inputs instead of proper DatePicker/DateTimePicker components.

Changes:

  • Import DatePicker and DateTimePicker from frappe-ui
  • Add handling for 'Date' fieldtype to render DatePicker component
  • Add handling for 'Datetime' fieldtype to render DateTimePicker component
  • Add date formatting in transValue for proper display

@KerollesFathy
Copy link
Contributor

Hi @samarth93, I think this PR will close #2670, right?

@samarth93
Copy link
Author

@KerollesFathy Yes, this PR fixes both #2669 and #2670 since #2670 is a tracking issue for #2669.

The fix adds DatePicker and DateTimePicker support to the UniInput component, which is used in the new ticket form for custom fields. This resolves the issue where Date and Datetime fields were rendering as plain text inputs.

Changes made:

  • Date fields now render with DatePicker
  • Datetime fields now render with DateTimePicker.
  • Proper date formatting for display

Both issues should be resolved with this PR

@KerollesFathy
Copy link
Contributor

@KerollesFathy Yes, this PR fixes both #2669 and #2670 since #2670 is a tracking issue for #2669.

The fix adds DatePicker and DateTimePicker support to the UniInput component, which is used in the new ticket form for custom fields. This resolves the issue where Date and Datetime fields were rendering as plain text inputs.

Changes made:

  • Date fields now render with DatePicker
  • Datetime fields now render with DateTimePicker.
  • Proper date formatting for display

Both issues should be resolved with this PR

Ok, I will close the PR 👍🏼

import { parseApiOptions } from "@/utils";
import { createResource, FormControl } from "frappe-ui";
import { createResource, DateTimePicker, dayjs, FormControl } from "frappe-ui";
import DatePicker from "frappe-ui/src/components/DatePicker/DatePicker.vue";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import from frappe-ui not like this

@RitvikSardana
Copy link
Member

@samarth93
CI failing!

Fixes frappe#2669

Custom Date and Datetime fields on the new ticket form were rendering
as plain text inputs instead of proper DatePicker/DateTimePicker
components.

Changes:
- Import DatePicker and DateTimePicker from frappe-ui
- Add handling for 'Date' fieldtype to render DatePicker component
- Add handling for 'Datetime' fieldtype to render DateTimePicker component
- Add date formatting in transValue for proper display
@samarth93 samarth93 force-pushed the fix/datepicker-custom-fields-2669-develop branch from 41b71d0 to f5712e0 Compare December 11, 2025 12:57
@samarth93
Copy link
Author

@RitvikSardana The workflow is waiting for the approval. Can you approve so I can see if everything is working fine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Date Field Doesn’t Show DatePicker on New Ticket Form

3 participants