Here is a sample to help you with your problem, just simply replace the"|"
with "•


Text Frame is:
«NewPhoneCellOrder»«HideFaxNumberLabel»
«EmailAddress»
«HideAddr1»«HideGreenBarAddr1»«HideCity»«HideStateComma»«HideGreenBarCity»«HideZip»

«Website»«HideGreenBarTollFree»«HideTollFreeLabel»

Here are the rules:
NewPhoneCellOrder
switch (Field("CardType").toLowerCase())
{
        case "Sales".toLowerCase():
                return Rule("HideCellNumberLabel")+Rule("HidePhoneNumberLabel");
        case "Manager".toLowerCase():
                return Rule("HidePhoneNumberLabel")+Rule("HideCellNumberLabel");
        default:
                return "";
}


HidePhoneNumberLabel
//this JavaScript will produce a string like "T. (306) 111-1111" if the
field "PhoneNumber" contains a value (3061111111 in our example).
//If the field PhoneNumber does not contain a value, the function returns
nothing.

desiredField=Field("PhoneNumber");
if (Field("PhoneNumber") == "")
        return "";
else
        return
'<f 
name"StoneSansITC-Medium"/>tel&nbsp;</f>'+Rule("NumberPhoneFormattingRule")+Rule("HideGreenBarTel");


HideCellNumberLabel
//this JavaScript will produce a string like "C. (306) 333-3333" if the
field "CellNumber" contains a value (3062222222 in our example).
//If the field FaxNumber does not contain a value, the function returns
nothing.

desiredField=Field("CellNumber");
if (Field("CellNumber") == "")
        return "";
else
        return
'<f 
name"StoneSansITC-Medium"/>cell&nbsp;</f>'+Rule("NumberPhoneFormattingRule")+Rule("HideGreenBarCell");



HideFaxNumberLabel
//this JavaScript will produce a string like "F. (306) 222-2222" if the
field "FaxNumber" contains a value (3062222222 in our example).
//If the field FaxNumber does not contain a value, the function returns
nothing.

desiredField=Field("FaxNumber");
if (Field("FaxNumber") == "")
        return "";
else
        return '<f 
name"StoneSansITC-Medium"/>fax&nbsp;</f>'+Rule("NumberPhoneFormattingRule");


HideAddr1
//this JavaScript will produce a string like "Address 1" if the field
"Addr1" contains a value (Address 2 in our example).
//If the field Addr1 does not contain a value, the function returns
nothing.
if (Field("Addr1") == "")
        return "";
else
        return '<f name=\"StoneSansITC-Medium\">'+Field("Addr1");


HideGreenBarAddr1
//this JavaScript will produce a string like " | " if the field "Addr1"
contains a value (3062222222 in our example).
//If the field Preceding does not contain a value, the function returns
nothing.

desiredField=Field("Addr1");
if (Field("Addr1") == "")
        return "";
else
        return '&nbsp;<color cmyk="6600ff00">|&nbsp;</color>'


HideCity
//this JavaScript will produce a string like "City" if the field "City"
contains a value (City in our example).
//If the field City does not contain a value, the function returns
nothing.
if (Field("City") == "")
        return "";
else
        return '<f name=\"StoneSansITC-Medium\">'+Field("City");


HideStateComma
//this JavaScript will produce a string like ", Province" if the field
"State" contains a value (Province in our example).
//If the field State does not contain a value, the function returns
nothing.
if (Field("State") == "")
        return "";
else
        return ',&nbsp;'+Field("State");


HideGreenBarCity
//this JavaScript will produce a string like " | " if the field "City"
contains a value (3062222222 in our example).
//If the field Preceding does not contain a value, the function returns
nothing.

desiredField=Field("City");
if (Field("City") == "")
        return "";
else
        return '&nbsp;<color cmyk="6600ff00">|&nbsp;</color>'


HideZip
//this JavaScript will produce a string like "Postal Code" if the field
"Zip" contains a value (Postal Code in our example).
//If the field Zip does not contain a value, the function returns nothing.
if (Field("Zip") == "")
        return "";
else
        return '<f name=\"StoneSansITC-Medium\">'+Field("Zip");


HideGreenBarTollFree
//this JavaScript will produce a string like " | " if the field
"TollFreeNumber" contains a value (3062222222 in our example).
//If the field Preceding does not contain a value, the function returns
nothing.

desiredField=Field("TollFreeNumber");
if (Field("TollFreeNumber") == "")
        return "";
else
        return '<f name=\"StoneSansITC-Medium\">&nbsp;<color 
cmyk="6600ff00">|&nbsp;</color></f>'


HideTollFreeLabel
//this JavaScript will produce a string like " | 1.888.888.8888" if the
field "TollFreeNumber" contains a value (3062222222 in our example).
//If the field TollFreeNumber does not contain a value, the function
returns nothing.

desiredField=Field("TollFreeNumber");
if (Field("TollFreeNumber") == "")
        return "";
else
        return Rule("NumberPhoneFormattingRule");







+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!


Variable text on a curve and soft drop-shadows for variable text


LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade

New licenses available for $599 each at:
http://fusionpro.printable.com/store/

All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
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