How to accept masked input

Is there any way to accept masked input from a user? it can be any kind of input - text, number, but should be masked as the user types it in. Thanks,

Hi @Zen,

Not at the moment but there is an open issue for this functionality.

If you are willing to write a hack using some html, CSS and javascript, then you Can get inspiration here. Change Log

Thank you for replying @Jonathan_Rhone and @Marc, Iā€™m not very familiar with javascript, but will look up awesome streamlit. Will also keep watching the github issue - this feature should be very helpful to lots of users.

Streamlit is awesome and is an awesome resource too!


the workaround from @aseifert works for this:

1 Like