Hi, This is what the business card I'm working on looks like. <Full Name>
<Main Title> These 2 titles I can
suppress if empty in text editor.
<Department>
<Email>
<Address1>
<City>,<State> <Zip>
<Direct Phone> direct These
4 need a rule to suppress the label if the field is empty.
<Fax> fax
<Main Phone> main
<Mobile Phone> mobile
<Website>
I found this rule in the knowledge base. It seems to address my issue
perfectly. I'm new to this, but when I rewrite it to fit my code, it will
not validate
// This rule produces a string like "Phone: 234-234-2344" from two fields:
the phone label and the phone number.
// If the field containing the phone number does not contain a value, the
rule returns nothing.
// You can then apply the "Suppress if Empty" parameter to the rule (see the
FusionPro User's Guide for more information).
if (Field("phone1") == "")
return "";
else
return Field("PhoneLabel") + Field("PhoneNumber");
How do I reverse the order of this rule to match what I am putting in the
text editor?
Thanks
Joseph I
tech.gif
Description: GIF image
-- 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 --
