I have a couple of ideas for implementing additional methods for inputs:
add a method to reset the error state using a JS script;
displaying custom error text using a JS script;
For example, we have an input field for a promo code, and if we apply an invalid code (checking on backend), we want to show an error to the user. Now we have to show a dialog. But it would be more clear for the user to highlight the field in red and add a red message at the bottom, as in a validation error.
Hello there!
I have a couple of ideas for implementing additional methods for inputs:
For example, we have an input field for a promo code, and if we apply an invalid code (checking on backend), we want to show an error to the user. Now we have to show a dialog. But it would be more clear for the user to highlight the field in red and add a red message at the bottom, as in a validation error.