Multiple Email Validation Script in Siebel
This post is a result of my sheer frustration for not getting this right in a 100 tries. I had been trying to validate the email addresses being entered in Siebel. I tried a lot of ways to get it to work (Data Validation Manager, Runtime events, Configuration etc) but the darn thing would just not work. I had to ultimately resort to the "boo hoo"- Script! I thought this would be useful for a lot of Siebel guys out there, will save you from all that frustration.(Checks/validates for a comma separated list of emails as well) Code: function BusComp_PreWriteRecord () { try { this.ActivateField("Email Address"); if (this.GetFieldValue("Email Address") != "") { var sEmail = this.GetFieldValue("Email Address"); var sPattern = /((\w+...