Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Non-required - but validated
Botham
Newbie

Posts: 1
Registered: 10/19/2005
Member Is Offline
posted on 10/19/2005 at 05:43 AM Reply With Quote
Non-required - but validated


I have purchased Pro and am building a form.

We have 3 phone fields that are not required, however if a phone number is entered they need to be 10 digits max/min.

'home_number':{'l':'Home Phone Number','r':false,'f':'phone','t':'t_home_number','mn': 10,'mx': 10},

However if user leaves the phone field blank Tigra Form Validator shows an error.

How do I get around this???
View User's Profile View All Posts By User U2U Member
CFD
Moderator

Posts: 48
Registered: 12/8/2003
Member Is Offline
posted on 10/20/2005 at 02:07 PM Reply With Quote

'home_number' :{'l':'Home Phone Number','f':/^[\d\.\s\-]{10}$/,'t':'t_home_number'},
View User's Profile View All Posts By User U2U Member
gapcnet
Junior Member

Posts: 9
Registered: 5/10/2006
Member Is Offline
posted on 5/16/2006 at 06:41 AM Reply With Quote

having to use a regular expression to specify the data pattern if r is set to false sounds like a bug to me.

If r = false then mn and mx should not come into play unless there is data present in the form field.

BTW - I've been pulling my hair out over this as well.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Multiple Forms Validation
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004