We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32025
    • 305 Posts
    I am trying to change the mandated two word variable in the Your Name field two only require one word.

    Here is the code taken from the sample form page:
    <input type="text" name="name" maxlength="60" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></p>


    As you can see it has #REGEX variables that requires two words. I did a search for the variables on the web and did not find what I was looking for. Since eForm does not have a config file, this is the coding that I believe it making this field require two words instead of one.

    Does anyone know how I can change the code above, so that the field only requires one word instead of two (and if they want to enter two words that is fine as well).
      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      <input type="text" name="name" maxlength="60" eform="Your Name::1" />
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32025
        • 305 Posts
        Thank you much. I was playing with that line and was close but must have been missing a character.

        Works great now, I appreciate your help!
          Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/