Jo,
What bill mentioned is exactly what you have to do. You have to make any
spaces you want, part of the rule that you want them to dissapear with.
So if you want two spaces AFTER the cell number then you have to put that in
the rule and DON'T PUT ANY SPACES IN WHEN YOU ARE INSERTING THE FIELDS.
Code for a space is
Eg.
if (Field("phone1") == "")
return "";
else
return 'Mobile: '+Field("phone1")=" ';
Then when you insert the fields...
<<phone1rule>><<cell1rule>>
There's no space inbetween the fields.
hth
-----Original Message-----
From: Bill Shea [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 1:06 PM
To: FusionPro Users Forum
Subject: [fusionpro] Re: second request for java rule
Jo,
I'm not real skilled at this, but could you use one of the rules below and
make the spaces part of the phone title/label. That way if the number is not
used the spaces will hidden along with the title/label?
//this JavaScript will produce a string like "Mobile: 234-234-2344" if the
field "phone1" contains a value.
//If the field phone1 does not contain a value, the function returns
nothing.
if (Field("phone1") == "")
return "";
else
return 'Mobile: '+Field("phone1");
//or
//this JavaScript will produce a string like "Mobile: 234-234-2344" if the
field "phone1" contains a value.
//If the field phone1 does not contain a value, the function returns
nothing.
//this is different from the rule above because phone1title is actually a
variable field and can //be a dropdown containing many values such as
Mobile: Cell: Pager: etc.
if (Field("phone1") == "")
return "";
else
return Field("phone1title")+" "+Field("phone1");
Bill Shea
Shea Brothers, Inc.
65 Innerbelt Road
Somerville, MA 02143
617-623-2001
www.sheabrothers.com
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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
--