FredrikOseberg / react-chatbot-kit

MIT License
299 stars 139 forks source link

suppress a user-entered reply to show as a formatted clientMessage #92

Open aman54kumar opened 2 years ago

aman54kumar commented 2 years ago

Hi,

I am implementing the chatbot for asking question regarding currency value to the user. But since the input field is an open field so a user can input in any format (for example "400$" or just "400" or "$400"). But the client message gets created with the same input value that was entered whereas I want to format it and set clientMessage as the updated(formatted value of the string) value.

How can I suppress the initial input by the user and instead show only the formatted value in the clientMessage area.