Custom Input/Form Validation

Curious if anyone has implemented form validation where an input must equal a specific value. In the case that the value matches, the form’s success message is shown. If it doesn’t, the form would show the error message.

Has anyone done anything like this natively or by using a custom solution in Webflow?

± the idea:

https://www.the-art-of-web.com/javascript/validate/

Its hard to answer without doing tests and so on. Anyway first create codepen - than remove the idea to webflow.