Try this:
if (Field("Address") == String("1234567890"))
{
return "<f name=MetaPlusBookRoman>"
}
else
{
return ""<f name=MetaPlusBookCaps>" +Rule("AddressLCRULE");
}
George Goodeluinas
Variable Digital Document Analyst
RR Donnelley
1842 Colonial Village Lane | Lancaster, PA 17601
Direct: (717) 239-5625 Main: (717) 239-5600
Cell: (570) 205-1254 Fax: (717) 239-5660
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 1:18 PM
To: FusionPro Users Forum
Subject: [fusionpro] Rule to change font in a field
hopefully someone can help me out w/ this.
i have created the rule below but everytime i validate it, the error
reads
"SyntaxError: missing ; before statement".
i am new to javascript but have been learning as i go. i'm just not sure
where my error is or what it is referring to.
the final result i need from this rule is this: the address field will
have 2 different fonts. the numbers that are typed in will be the font
MetaPlusBookRoman and the letters that are typed in will be the font
MetaPlusBookCaps.
i also have a rule in place to make all of the letters smallcaps.
can someone guide me in the right direction? thank you in advance for
any
help.
if (Field("Address") == String("1234567890"))
{
return "<f name=MetaPlusBookRoman>"
}
else
return ""<f name=MetaPlusBookCaps>" +Rule("AddressLCRULE");
--
Users of FusionPro Desktop have unlimited free email support. Contact
Printable Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or
otherwise recorded by the e-mail recipients of this forum. It is subject
to archival, monitoring or review by, and/or disclosure to someone other
than the recipient. Our privacy policy is posted on www.printplanet.com
--
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--