Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4027 มุมมอง

Hello Community,

Is it possible to hide the bootstarp datepicker popup from date/datetime and allow only input by keyboard ?

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you're only after this for a handful of fields, you can use widget="char" in the view definition of the field to force it to be just a regular text box. However, this means you will need to type in the system date format such as %Y-%m-%d %H:%M:%S, rather than the language based format you see in a regular date/datetime field. The date/datetime widget normally handles this abstraction for you.

To do it system wide, you would need to modify the date/datetime widgets to act like a char field, and optionally allow users to type in a date in their language format and convert it for them.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ค. 25
1151
0
ต.ค. 16
3782
0
มิ.ย. 24
1957
2
ม.ค. 24
2062
1
ก.ย. 22
2400