Hi Everyone:
I am using Adobe Pro. 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