WBG-guy Posted October 23, 2012 Share Posted October 23, 2012 I'm still learning javascript so bare with me. I'm using the phone tab rule and I have it working except I can't seem to figure out how to reduce the font size of the tabbed "PHONE". It needs to be two points smaller than the default size. Here's my rule... if (Field("phone1") == "") return ""; else return Rule("phonetab") + <b><color name="WHITE"><f name="NewsGothicSTD">OFFICE</f><t></color></b>'; Thanks for you help! Quote Link to comment Share on other sites More sharing options...
esmith Posted October 23, 2012 Share Posted October 23, 2012 The rule you posted does not include font size so either the size is defined in the contents of the phonetab rule (which you would need to post) or directly in your variable frame. Assuming "PHONE" appears in Rule("phonetab") similarly to the way "OFFICE" appears in the rule above, you would need to replace PHONE with <z newsize='#'>PHONE</z> where # is the font size you want it to appear as. Also note that as written in your first post, there is a missing quote around your tagged text in the 4th line - I see an end quote but nothing in the beginning. Quote Link to comment Share on other sites More sharing options...
WBG-guy Posted October 23, 2012 Author Share Posted October 23, 2012 That worked perfectly. Thanks again for your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.