Hi ,
You can achieve this with bit of custom coding:
1) Set a regex to validate price between 0-50
2) Use this hook of success state
jQuery(document).on(“lv_after_field_valid”,function(event,element){ jQuery(element).css(“background-color”,”green”); });
3) Check if the value of the field is between 50-80. If yes, use the above hook to apply your CSS and show the warning message.If the value is above 80, show the success state.
Few points regarding this feature:
1) We don’t validate on each keystroke.This can be frustrating for the user.
While use case you propose, will make much more sense if feedback was given live, just a WP editor gives while showing word count or last saved date
https://screencloud.net/v/4h22
The second example could of how password strength meter works while typing in the password.
These suggestion are closer to run time feedback element under the field as a user is typing, test, rather than thinking of them as validation states.
2) We had shown success state in initial build of the plugin.But after running many tests, we figured that showing success message was causing the user to stop for a few seconds, take notice of success state, before filling in next field. This diverted user attention & caused the overall delay in filling up the form.
For small forms, it didn’t matter much, but for large forms, the delay was considerable and decreased conversions.
Adding a warning message may even increase this delay causing conversions to decrease.
3) Our system works on a boolean state, either validation is true or not.So introducing an intermediary state at the moment is not how it’s built.
4) If in future the demand for this feature comes up again, we shall think about it in integrating the core.
Let me know if you need any further help.
Thanks
Jeet