How to Validate Multiple email address in spry?

How to validate multiple email address in spry framework?
Spry validate text field can validate one email address only,
if I the text field is for multiple emails, how can I validate
it?

Hello Jackson,
The Spry Textfield was designed to work with the normal work
flows that people currently use in most of the forms on the web. We
tried to prevent any email injection method in the forms therefore
the validation was designed to stop any multiple email insertion.
In case you want to insert multiple emails you'll have to
disable the default email validation and create your own validation
function, more flexible. You can see a
sample
we did for the custom validation trying to validate a password
strength and confirm the password.
Cristian

Similar Messages

  • How to validate an email address against free domain users

    Hi all,
    I want to validate an email address so that only users of non free domains (let's say other than yahoo, hotmail, gmail, etc) can create an account in my apex application.
    I want to place a validation on the "Registration Page" but I am not sure how to proceed from then on :(
    Does anybody know how I can do this ?
    Kind Regards,
    Ana-Maria

    Hi Ana-Maria,
    You can do this on two places. You can do it on the client (using javascript) or you can do this on the database (using a trigger or a check constraint). The best way is to do both.
    Use something like this for the javascript bit:
    <script type="text/javascript">
    function checkemail(){
      var email = $v('P4_EMAIL');
      //get index of @
      var x = email.indexOf('@');
      //get the string behind @
      var behind_amp = email.substring(x+1, email.length);
      //get the index of the .
      var y = behind_amp.indexOf('.');
      //filter out the provider
      var provider = behind_amp.substring(0, y);
      var result;
      // set all wrong providers in this case
      switch(provider){
        case 'hotmail': result=false;break;
        case 'yahoo': result=false;break;
        case 'gmail': result=false;break;
      // Check the result
      if (!result){
        //The provider is bad
        alert(provider + ' is not allowed!');
        //Keep the focus on the email field
        setTimeout(function(){$x('P4_EMAIL').focus();}, 5);
    </script>Set the event to the onchange of the email field (in HTML Form Element Attributes):
    onchange="checkemail();"Hope this helps,
    Greetings Rutger

  • How to validate a email address using Validation Pattern?

    Hi,
    is there any document for Validation Pattern? i m looking for a way to validate email addresses in my form.
    it's going to be something like * @ .
    i have no idea of how to do this, or maybe validation pattern is no good? use java script instead?
    any advice is appreciated!
    thanks.

    Hi erv2,
    You just need to place this script in the "exit" event of the field that u r using for email address.
    var r = new RegExp(); // Create a new Regular Expression Object.
        r.compile("^[a-z0-9_\\-\\.]+\\@[a-z0-9_\\-\\.]+\\.[a-z]{2,3}$","i");
    if( this.rawValue == null || this.rawValue == "")
    else
    var result = r.test(this.rawValue);                                              
    if (result == true) // If it fits the general form,
         true;               
    else
          xfa.host.messageBox("Please enter a valid email address ");
          this.rawValue = "";
          false;               // fail the validation.
    Thanks
    Amita
    Edited by: amita arora on Jan 20, 2009 10:44 AM

  • How to configure multiple email addresses for a Google Apps profile on iOS 8.1?

    I've got a Google Apps account with 4 incoming email addresses. I'd like to use either Exchange or Google as the email type for this account. I understand how to setup the original account (done, works great). I understand how to change the one-and-only sending address to essentially any one of the 4 authorized send-from emails. However, I can't seem to figure out how to add all 4 addresses so that Mail.app on my phone automatically chooses the correct address for replies to incoming

    I would like to know this too, although as far as I have read, it's not possible (anymore) with Mail. Previous you would have added your 4 email addresses separated by commas as your email address. I tried doing that recently but Mail did not understand it. You will need to resort to using the official Gmail app for your secondary incoming addresses.

  • Does anyone know how to import multiple email addresses from the cc part of an email inot addressbook without having to do them one by one?

    i'm trying to import a group that i belong to from the cc area of an email i received in mail to addressbook without having to do them one by one which is plainly tedious. does anyone know how to do this? can i convert them to vcards somehow, all together not individually?
    thanks!!

    I have the same question

  • How to separate / validate multiple emails?

    Hi,
    User enters single or multiple emails in the field. We provide help saying that all emails must be separated by either a comma or semicolon. Not everyone follows that so if user enters [email protected] [email protected] the email is not sent. There can be more than 2 emails.
    So is there a way to check that those emails are separated by either comma or semicolon, and if not add it before email is sent?
    Thank you

    Hi Frank,
    I am trying to validate multiple email addresses as well. Currently, my function works for only one email address. Is there a way to extend this function? I am using Oracle 9i.
    FUNCTION validate_email_format(p_address IN VARCHAR2) RETURN VARCHAR2 IS
      l_dot_pos    NUMBER;
      l_at_pos     NUMBER;
      l_str_length NUMBER;
    BEGIN
      l_dot_pos := instr(p_address, '.');
      l_at_pos  := instr(p_address, '@');
      l_str_length := LENGTH(p_address);
      if ((l_dot_pos = 0) OR (l_at_pos = 0) OR (l_dot_pos = l_at_pos + 1) OR
          (l_at_pos = 1)  OR (l_at_pos = l_str_length ) OR
          (l_dot_pos = l_str_length)) then
        return 'FAILURE';
      end if;
      if instr(substr(p_address, l_at_pos), '.') = 0 then
        return 'FAILURE';
      end if;
      return 'SUCCESS';
    END validate_email_format;Thanks

  • Multiple Email Address Validation in Siebel 8

    Hi,
    I am trying to find out the way through which we can validate multiple email addresses in siebel 8 while performing F9 functionality.I mean, in the "To" field if we want to include several mail ids, then it should be able to validate the mail ids with names in double quotes and the mail id in angular braces <> and the next mail id seperated by comma, for example:
    It should allow: "abs mehra" <[email protected]>, "jkl kala" <[email protected]>,...
    Thanks
    Edited by: 915268 on Feb 17, 2012 5:29 AM
    Edited by: 915268 on Feb 17, 2012 5:34 AM

    Hi, try these links maybe they will be useful :)
    http://onlysiebel.blogspot.com/2011/05/email-validation-script-in-siebel.html
    http://siebelunleashed.com/validating-email-address-siebel/
    Regards,

  • How do i add multiple email addresses to my calendar

    How do I add multiple email addresses to my calendar on my iphone

    You can create an email alias at the mail feature at iCloud.com

  • How do I enter multiple email addresses for a Firefox Sync account?

    How do I enter my multiple email addresses for one Firefox Sync account?

    Sorry, but Address Book does not allow you to select more than one email address to send to in a group. There's really no reason why people need multiple copies of a message, anyway; they have the option of forwarding email to another email address of theirs.
    Mulder

  • How can I add multiple email addresses to Address Book?

    How can I add multiple email addresses to Address Book?
    Can it be done from an .xlsx file?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How do I add multiple email addresses i have received (900) to my address book instead of doing it one by one?

    how do I add multiple email addresses i have received (+ -900) to my address book instead of having to do it one by one?

    Grab them all and drag them to the Address Book.
    Roger

  • How can I add multiple email addresses  from spreadsheet into email?

    how can I add multiple email addresses  from spreadsheet into email?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How do I copy multiple email addresses from one email sent TO me into a new message?

    How do I copy multiple email addresses from an email sent to me into a new message?

    Are they in the body of the mail?
    Hold your finger down in that mail until the little blue bubble pops up. One of the options should be to select all. Choose that and all will be hilighted. then a pop up comes up to copy, choose that, open your destination and hold your finger down to get the paste dialogue.

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • How do I send to contacts multiple email addresses at one time?

    I have several contacts who ask that emails be sent to multiple emails address at the same time.  How do I do that without creating additional cards for each email address?

    Are you entering the addressees into Mail individually or are they included as part of an Address Book group? If you are using a group, I believe you will need to have multiple cards per individual.
    If you are typing the addressees into Mail's "To:" and "Cc:" boxes, you can select among multiple addresses on one contact card just as you would select among multiple people with the same first name; just repeat for each address.

Maybe you are looking for

  • Transfer files from one account to another on iMac

    How can I transfer files from another account on my iMac to my account.  I am the administrator of this iMac.  The files I want to copy are on the desktop of my son's account on this computer.  They are just too big to email to myself. Thank you. Raj

  • Append swf file - Spry.Utils.updateContent - not work

    I don't understand this When I try to add swf file to Spry Tabbed Panels content - everything is OK. Now - in tabbed panels content I want to insert data from external html files. In this external file I have swf file and text, and images. When I pre

  • Pages output to projector

    Only keynote application in my iPad allows output to projector / tv when connector however not pages application or numbers. Any specific reasons? or I am I wrong?

  • Making Crystal reports to external customers

    Hi Im making reports for external customers. What do they need to install to see the reports? They have SAP and a database server. Is it enough with a crystal runtime? or do they need to change the connection to their own database and therefor need C

  • Need to downgrade from 5.0.0.973 to ANYTHING!

    Friday night I did a wireless update from one version of 5.0 (don't remember which) to 5.0.0.973 only to wake up that morning with my contacts locked and then ultimately missing. BBM won't work.  It kept saying I didn't have a wireless connection. On