Hello Jo,

Use the following logic and change the field names to match your data file:

// This rule forces the first character of a field (typically a field that 
contains a name) to be upper-case.

var currentField = Field("FullName");

splitFieldVar = currentField.split(" ");
newVar = ""
for (i = 0; i < splitFieldVar.length; i++)
{
 newVar += splitFieldVar[i].substring(0, 1).toUpperCase() + 
splitFieldVar[i].substring(1, splitFieldVar[i].length).toLowerCase() + " ";
}

return newVar;


regards,
Alex Marshall


-----Original Message-----
From: Jo Gerth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 28, 2007 10:56 AM
To: FusionPro Users Forum
Subject: [fusionpro] Need a javascript rule


Hello
I need some help writing a rule. I need for it to do 2 things.
First I need it to be a Large and Small Caps rule with the first  
letter in caps and the balance
of the letters in small caps. I also need it to be able to have an &  
come out in the same
size as the Large cap size.
For example Office & Retail
The O & R should all be the same size.
I put in a large and small caps rule but the & came out the same size  
as the small cap size.
Does this make any sense?
Any help will be greatly appreciated.
Thanks
Jo

--
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
--

Reply via email to