Results 1 to 3 of 3

Thread: Minimum input string length for message field?

  1. #1
    Join Date
    May 2008
    Posts
    2

    Default Minimum input string length for message field?

    Can't find where to set a minimum required string length for a Message field in formmail - FAQ, How To, Forum, Help etc. - no clues. Most grateful for a pointer - driving me crazy - message field currently OK'd with a single text character. Help! (And TIA).

  2. #2
    Join Date
    Apr 2008
    Posts
    23

    Default Re: Minimum input string length for message field?

    I would say you could try a regular expression.

    For example, this regular expression would make sure that there are at least 3 consecutive characters in the First_Name field (mind you, it won't check WHAT characters those are, they could be spaces or symbols or whatever - just that 3 chars (excepting newlines) are there)

    Code:
    conditions1 = ":@
    	@TEST@First_Name ~ /.{3,}/@First Name is too short!@:
    	"
    This site has good tutorial / reference on regexes :
    http://www.regular-expressions.info/

    You can make a regex to test almost anything you want - they're pretty powerful.

    There may be a simpler way, but if there is, I don't know.

  3. #3
    Join Date
    May 2008
    Posts
    2

    Default Re: Minimum input string length for message field?

    Many thanks for your reply!

    Dan E

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Invalid "conditions" field "conditions" - not a string or array
    By markalexandrov in forum FormMail Subscription Support
    Replies: 40
    Last Post: 26-Feb-2006, 11:46 PM
  2. Maximum length of CSV file
    By eu4ic in forum FormMail Subscription Support
    Replies: 3
    Last Post: 14-Aug-2005, 12:34 PM
  3. Can "Reply To" EM Field be set to email field
    By CWD in forum FormMail Subscription Support
    Replies: 2
    Last Post: 26-Jul-2005, 04:56 AM
  4. Special Characters in Value String
    By hpinson in forum FormMail Subscription Support
    Replies: 4
    Last Post: 24-Mar-2005, 09:04 PM
  5. Variables in HTML form - assigning input type
    By tvulucy in forum FormMail Subscription Support
    Replies: 4
    Last Post: 28-Oct-2004, 08:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •