Google Groups Home
Help | Sign in
Does regexp make the field reuired?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Rups  
View profile
 More options Mar 27, 3:37 pm
From: Rups <isingl...@madasafish.com>
Date: Thu, 27 Mar 2008 12:37:42 -0700 (PDT)
Local: Thurs, Mar 27 2008 3:37 pm
Subject: Does regexp make the field reuired?
Hello Federico,

Does the use of regexp make that field required?  I have used regexp
on a field that is not required.  If a user wishes to complete the
field I want the regex to operate but not if the user chooses not to
complete that field.  During testing, I found that the regexp produced
an inline prompt to complete the field even though it is the only
validation for that field.

The regexp is:
rules[12]='custom10:* Tu móvil o otro teléfono|regexp|^[0-9,+,(), ,]
{1,}(,[0-9]+){0,}$';

Brgds Rups


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
federico  
View profile
 More options Mar 27, 3:58 pm
From: federico <f.crivell...@gmail.com>
Date: Thu, 27 Mar 2008 20:58:24 +0100
Local: Thurs, Mar 27 2008 3:58 pm
Subject: Re: Does regexp make the field reuired?
Hi Rups,
the regular expression are a powerful tool. You can use them to solve
problems very difficult.
The use of regexp in yav doesn't make that field required. BUT the
regexp itself could make the field required!!
In fact, try this example:

    http://yav.sourceforge.net/en/example_8.html

The US telephone requires the field (the regexp indeed!), the IT
telephone doesn't require it.

So you have to check in deep your regular expression so that it makes
exactly you want.

My suggest: if you are a newbie in javascript try to find out a regexp
with a search engine.
In my opinion, regular expression are difficult to understand in deep.

Best regards,
Federico


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rupert Reid  
View profile
 More options Mar 27, 4:55 pm
From: Rupert Reid <isingl...@madasafish.com>
Date: Thu, 27 Mar 2008 20:55:09 +0000
Local: Thurs, Mar 27 2008 4:55 pm
Subject: Re: Does regexp make the field reuired?
Thanks Federico,
Brgds Rups
On 27 Mar 2008, at 19:58, federico wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google