Jump to content

PhoneTabRule need different size...


Recommended Posts

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


return Rule("phonetab") + <b><color name="WHITE"><f name="NewsGothicSTD">OFFICE</f><t></color></b>';


Thanks for you help!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...