System Information
- Strapi Version: 3.6.9
- Operating System: Windows 10
- Database: MySQL
- Node Version: 14.20.0
- NPM Version: 6.14.17
- Yarn Version: 1.22.19
Hi Everyone
I have a Strapi project. I have created a collection to store product data and prices. Now I want to show a custom message if the price is greater than one million. I want to show it like a warning message, not an error message. I found on Strapi docs that I can show error messages using throw strapi.errors.badRequest('Price must be between 1.000.000 and 150.000.000');
the problem is it will stop the hook from saving my data and I don’t want that. I just want to show a custom warning message just to let the user know that it doesn’t meet this requirement.
Is there any way to do this?