Results 1 to 4 of 4

Thread: Validate fields not required

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Default Validate fields not required

    Well, I use the following input fields in my form.

    Code:
         <label for="em">E-mail</label><br />
        <input class="form" id="em" name="email" type="text" size="40" /><br />
    
        <label for="tlf">Telefon</label><br />
        <input class="form" id="tlf" name="telefon" type="text" size="40" />
    None of these two fields are required, but if one or both are filled out, I want to validate the value. How can I do that?
    Last edited by WolfgangEdenharder; 02-Jul-2007 at 07:40 AM.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Validate fields not required

    Hi,

    You use "conditions" for this.

    Here's the documentation: http://www.tectite.com/fmdoc/creating_forms.php
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2007
    Posts
    2

    Default Re: Validate fields not required

    Nice. I'm quite a novice, so please can You direct me to one or more examples showing the use of conditions? Some usefull regular expressions and where to place the different CODE elements?

    I need to validate the field 'email', and the field 'telephone' as digits only.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Validate fields not required

    Hi,

    You can search the forums for examples of conditions.

    You can also subscribe for support and we'll help you write it.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Required fields containing default text
    By tvulucy in forum FormMail Subscription Support
    Replies: 9
    Last Post: 08-Oct-2004, 09:26 PM
  2. Required Fields not working?
    By zoe77 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 02-Jun-2004, 04:27 PM
  3. Deriving fields from other fields
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 12:25 PM
  4. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 09:04 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 09:04 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
  •