Hi All,
We have a date field component in an interface and its taking more number of characters which is not needed. Refer below screenshot.
We need to restrict the number of characters to be entered is mm/dd/yyyy i.e., 10. Along with that is there any possibility that we can take only digits as input and datefield will auto apply "/" as per format "mm/dd/yyyy". We dont want the user to type more characters and date component validation fires and display the message. Rather placing restriction makes many things easier.
Kindly suggest on the above.
Discussion posts and replies are publicly visible
It is not possible to restrict users from what they can type but these kind of inputs will not be accepted in the date field and it will through a validation message. I think you know that users can also select the date of their choice by clicking on calendar icon too.
Date component works as is.
You could try using a text field with formatting and validation rules or developing your own component.