You are viewing limited content. For full access, please sign in.

Question

Question

JavaScript E-mail Validation Script

asked on September 30, 2014 Show version history

Hi Everyone:

 

I am using Adobe Pro and integrating it with LF for internal stuff. I'm looking to validate a custom textbox I created which will contain email addresses, for example:

xxx@xxx.xxx; xxx@xxx.xxx; xxx@xxx.xxx

I wrote some JavaScript which looks to be accurate, however It's not working. Can anyone make mention to something I am doing wrong here? It looks to get hung up when I attempt to parse into array.

 

if (event.value!=null){
    var values = event.value;
    var valueInfo = values.toString();
    var emailArray = valueInfo.Split('; ');
  
$.each(emailArray, function(i,val){
    if(!eMailValidate(val)){
    app.alert("Incorrect Format");
    event.rc = false;
    }
  });
}

 

thanks in advance.



Tony
 

0 0

Replies

replied on September 30, 2014

This is not a Laserfiche question, but more a Adobe Pro one. This likely will not be an answer unique to Laserfiche, but to Adobe, so I would recommend searching sites like StackOverflow for an answer to this question.

0 0
replied on September 30, 2014

thanks ken ill check it out.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.