Validation for ui.date_input and ui.time_input #5713
Mick235711
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Due to the underlying nature of
ui.input, currentlyui.date_inputandui.time_inputdo not do any validation; the date/time picker itself will only ever populate ISO-formatted date and time into the input field, but the user can essentially input anything themselves. The API of these two classes also does not expose avalidationparam at all, whichui.inputdoes, making programming validation with them a bit hard.Is it possible to add a
validationparam to their API, or maybe do automatic validation such that the callback is only called if and only if the user input can be parsed correctly?Beta Was this translation helpful? Give feedback.
All reactions