Share feedback, ideas and get community help

Updated 2 months ago

Java script for a character limiter for text input?

Hi, does anyone have a Java script for a character limiter for text input? thanks for the help in advance
Attachments
2024-02-24_12-16.png
2024-02-24_12-17.png
1
B
m
L
11 comments
After collecting the answer, you can add a Set variable block that gets the answer length: {{reposta}}.length, then use a condition block that checks if the length in more than X
Hi, thank you for your answer, it didn't work, the idea is not to let the person type more than the maximum characters allowed, like it reached 10 characters and it won't accept any more, thanks for your help, I keep trying here, I saw a video on YouTube where does the person do this, I'll try to leave the link here, I don't know if it's allowed, thanks again
πŸ‘‡ it didn't work
Attachment
image.png
Thank you, it worked here, it's working ok, gratitude is the word πŸ˜€
The one in the YouTube video is different but the one you gave me here helps.πŸ˜€
This way is more intuitive to customers. Hope it gets official in Typebot.
You need to take into consideration other chat platforms
For example WhatsApp does not have the ability to directly restrict the length of a message
So typebot need to embrace the same chat logic here for consistency
how you did that ?
Add a reply
Sign up and join the conversation on Discord