How to disable datepicker textfield? | Community
Skip to main content
Employee
Apr 29, 2022 10:01 AM UTC
Solved

How to disable datepicker textfield?

Hi,

 

I'm using datepicker in my component and I have given minDate as today in properties which works fine by disabling the previous days. How to disable the textfield so that author won't be enter the date but only pick the date from datepicker.

 

Thank you 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Apr 29, 2022 12:08 PM UTC

Hi,

You may have to write a custom logic to disable keyborad input to input text field

https://stackoverflow.com/questions/29715655/html-5-input-type-date-disable-keyboard-input

 

Arun Patidar

6 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Apr 29, 2022 12:08 PM UTC

Hi,

You may have to write a custom logic to disable keyborad input to input text field

https://stackoverflow.com/questions/29715655/html-5-input-type-date-disable-keyboard-input

 

Translate
Arun Patidar
Employee
Apr 29, 2022 12:54 PM UTC

Hi @arunpatidar ,

 

Thank you, it worked.

Translate