Share feedback, ideas and get community help

D
F
M
a
g

Specifying `maxlength` on a Text Input block

I have a typebot with a Text Input block that collects text that I later pass into an AI service. I'd like to enforce a max length on this input in order to cap the number of input tokens spent. I see that there's a short text input vs long text input distinction, but I haven't spotted a way to limit the maxlength on the short text input. Is there a way to limit this? Thank you!
B
4 comments
You should add a condition block right after the text input to enable any sort of validation.
The goal here is that it is compatible on platform where max-length attribute is not a thing like WhatsApp
But still I guess I could provide that option and validate it automatically for WhatsApp
Add a reply
Sign up and join the conversation on Discord
Join