✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Input Validations

Hello,
I am using dash table experiments for my app. I would like to know that can I somehow apply validations on dash data table’s input. I have one column in data table which is further used as pandas dataframe. I want to limit the user input to this column to only integers between 1 to 25. Is there any way to not allow user fromo entering any characters other than valid integers?

Thankyou!!

Thanks for writing in!

There’s no automatic validation for user input in the way you’re describing. I would suggest validating the input on your own: use the datatable as an input, validate the values, and have a separate div notifying the user it’s validated or some values need to be changed.