You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using "react-chatbot-kit": "2.2.2".
I would like to load chatbot with disabled "Send button".
Once user entered input that is more than 4 chars, then the send button should be enabled.
I have added a validator to "Chatbot" tag. So that message of length < 5 wont be posted.
But, how to update Send button status or CSS?
The validator code is;
The text was updated successfully, but these errors were encountered:
Subbu-git-coder
changed the title
Disable send button when validator returns False
Disable send button when message input box is having message of length > 4
Jul 18, 2024
I'm using "react-chatbot-kit": "2.2.2".
I would like to load chatbot with disabled "Send button".
Once user entered input that is more than 4 chars, then the send button should be enabled.
I have added a validator to "Chatbot" tag. So that message of length < 5 wont be posted.
But, how to update Send button status or CSS?
The validator code is;
const Validator = (input) => { if (input.length > 4) return true; return false } export default Validator;
The text was updated successfully, but these errors were encountered: