Results 1 to 2 of 2

Thread: form validation

  1. #1
    Join Date
    Jun 2008
    Posts
    10

    Default form validation

    I have a form that is taking in credit card information. Is there a way to require that the field for the credit card number have the dashes ex. 1234-5678-9123, rather than 123456789123, what would be the best practice here?

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: form validation

    conditions will do this for u:
    http://www.tectite.com/fmdoc/creating_forms.php

    e.g.
    HTML Code:
    <input type="hidden" name="conditions"
     value=":@@TEST@ccard ~ /^([0-9]){4}-([0-9]){4}-([0-9]){4}-([0-9]){4}$/ @enter card no with dashes@" />

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to perform a simple field validation
    By bemmel in forum Community Support
    Replies: 3
    Last Post: 26-Aug-2006, 07:31 AM
  2. syntax-validation for email-address?
    By yogi in forum Community Support
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  3. syntax-validation for email-address?
    By yogi in forum Features Questions
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  4. Error message emails following form validation
    By dynamo in forum FormMail Subscription Support
    Replies: 1
    Last Post: 06-Mar-2006, 04:50 AM
  5. Email validation - but only if field completed
    By tvulucy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Aug-2005, 09:12 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
  •