I am attempting to script a rule that will hard code the first six digits of a phone field based on the zip code, in order to allow the client to only enter the last four digits after they have selected the office they are located in.
My script looks like this:
if (Field("Zip") == "10007")
return "646 587";
else
return " ";
if (Field("Zip") == "02199")
return "617 425";
else
return " ";
if (Field("Zip") == "60611")
return "312 266";
else
return " ";
if (Field("Zip") == "10011")
return "212 463";
else
return " ";
if (Field("Zip") == "94102")
return "415 345";
else
return " ";
... but I am not getting any return. I am certain it must be a simple
Javascript error, but cannot find it. Any ideas?
Thanks in advance!
Christopher Reilley
Business Systems Analyst - Printing
W.B. Mason Co.
59 Centre Street, Brockton, MA 02303
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
(p) 508.436.8693
(f) 508.436.5090
(c) 781.308.2083
<<image001.gif>>
