Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Add support for input validation within input textarea #69

Open
tjtanjin opened this issue Jun 12, 2024 · 5 comments
Open

[Task] Add support for input validation within input textarea #69

tjtanjin opened this issue Jun 12, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@tjtanjin
Copy link
Owner

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 tjtanjin added the enhancement New feature or request label Jun 12, 2024
@tjtanjin tjtanjin self-assigned this Jun 12, 2024
@Vince-ALIEN
Copy link

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

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

@successbyte
Copy link

successbyte commented Sep 3, 2024

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

@tjtanjin
Copy link
Owner Author

tjtanjin commented Sep 3, 2024

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) 😊!

@successbyte
Copy link

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

@tjtanjin
Copy link
Owner Author

tjtanjin commented Sep 3, 2024

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 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants