We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10940
    • 71 Posts
    Can I have validation that prevents specific words for specific input fields?


    For example:

    I have an eform that is only input fields (no labels).
    I have a jquery script that autofills the input fields with text labels for each input, i.e. First Name, Email, and then disappears onclick.
    How do I make sure that the eform validation doesnt think the javascript text labels are put there by the user.

    Hope that makes sense!

      • 30223
      • 1,010 Posts
      Since you’re using jQuery to add the text in the first place the easiest solution would be to use jQuery to remove any leftover default text upon form submission. Failing that have a look at the #FILTER validation rule in the eform documentation (snippets/eform/docs/eform.htm).