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

Feature request: Add validation on the widget side #249

Open
bazilval opened this issue Apr 28, 2024 · 0 comments
Open

Feature request: Add validation on the widget side #249

bazilval opened this issue Apr 28, 2024 · 0 comments

Comments

@bazilval
Copy link
Collaborator

bazilval commented Apr 28, 2024

Problem description

At the moment, the user will not be able to understand in any way that he has not fulfilled some validation rules set up on the backend. For example, enter a name longer than 50 characters, click send -> the widget just closes and everything looks like the report has been sent, but in fact we get a Bad request.

Proposed solution

It would be good to validate the data in the widget code before sending the report and give hints that some data is not suitable and why

Or, in order not to duplicate the validation rules (which may change), we can receive an error from the backend, where errors will be passed in the body, and process them in the widget

@niyatanya niyatanya changed the title Feature request: Добавить валидацию на стороне виджета Feature request: Add validation on the widget side Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant