Avatar

Level 5

Hi all,

In addition to my question above, I have another:  I have an e-mail field where all users will be entering the same domain after the "@".  Is there a way to automatically replace the "@" with "@domain.com"?  I have used the code below (and other variations of it, using quotation marks, etc.) and haven't been able to make it work:

if (xfa.event.newText.match(/[@]/))  {

  xfa.event.change = "@domain.com";

}

Great appreciate any help!