react-chatbotify icon indicating copy to clipboard operation
react-chatbotify copied to clipboard

[Task] Add support for input validation within input textarea

Open tjtanjin opened this issue 1 year ago • 5 comments

Description: Several users have brought up request for feature of allowing input validation to be done within the input textarea. Currently, the only way to do validation is after user sends the message. It would be great if validation can be done before a user even sends it. The tentative suggested approach is as follows:

  • Add a new inputValidator attribute to block which accepts 2 properties validator and errorMessage
  • The validator property will return true or false and if false, then the errorMessage is displayed

Position of the error message is tentatively above chat input container in the form of a small popup bar. The chat input textarea itself should also be outlined in red when error is shown. Upon displaying the error, it should only be dismissed when user make changes to the textarea.

tjtanjin avatar Jun 12 '24 14:06 tjtanjin

It's done, I think you're going to scream...

https://github.com/Vince-ALIEN/wp-chatbotify

Vince-ALIEN avatar Jul 01 '24 15:07 Vince-ALIEN

Hello @tjtanjin if you didn't solve the issue would you please assign me to this issue I am interested to contribute I liked your repo a friend sent me your Reddit message thanks

successbyte avatar Sep 03 '24 01:09 successbyte

Hey @ehsanullahhaidary, thank you for the interest! I'm actually working on this issue personally as it is likely to be delivered as part of the plugin feature. Apologies that this is one of the issues where it's a little hard to have others help with 😅 There are a few other good-first-issues sitting around so feel free to take a look (or even suggest/create new issues) 😊!

tjtanjin avatar Sep 03 '24 03:09 tjtanjin

oops 😄 sorry to interrupted you task Ok I will check other issues as well thanks for the nice reply 😃

successbyte avatar Sep 03 '24 04:09 successbyte

oops 😄 sorry to interrupted you task

Ok I will check other issues as well

thanks for the nice reply 😃

No worries, thank you for reaching out 😊

tjtanjin avatar Sep 03 '24 05:09 tjtanjin

Completed with the release of the Input Validator plugin 😊

tjtanjin avatar Nov 13 '24 18:11 tjtanjin