Form validation and custom function

Hi

I have a simple form which accepts an email address and a submit button.

After hitting submit i want:

  1. The input email field to validate that the input is an an email form
  2. If validation passes, to show a div with some text below the form input. ( The div is already created and in an initial state of hidden, so after submission and validation the div div.style.display = ‘block’

I dont want the custom message to show after submission and validation to show

1 Like

We ran into this issue on a client project and created a solution for validating text inputs.

If you check out the tutorial video you’ll get walked through the issue as well as implementing the solution from start to finish.

Please feel free to tag me if you have any questions!

Happy Thursday!