javascript a value from another field to another field
Hello,
I have a field that is a number that results (when entered) 999-99-9999. This is field "1a". I'm trying to get this result to show up in another field "a14a7" without the "-" between the numbers so it all comes together as 999999999. This is the script i wrote, which is pulling the number entered but my result still has the hyphens. Can anyone help me with this?
if(this.getField("1a").value)
{event.value=this.getField("1a").valueAsString}
else
{event.value=this.getField("").valueAsString}
