Search the Community
Showing results for tags 'change'.
-
I currently have 3 rules to change the numbers in the specific field to a different font. These rules work. RuleAddressFont return Field("Address").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>'); RuleFaxFont return Rule("RuleFaxFormat").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>'); RulePhoneFont return Rule("RulePhoneFormat").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>'); I need assistance with the following: 1. Including change in font size & leading for the numbers: Font size with Gotham Medium should be 7pt with 8.4pt leading 2. Including ( ) and - characters in the phone & fax rules If someone can use the phone or fax rule above to show me how to do this, I can then apply it to the others. All help will be much appreciated.
-
Please help. I'm programming a business card template and the customer uses 2 colors for the name. First Letter is PANTONE 2717 C and all other letters are Pantone 659 C. Will someone help me write a javascript rule for this? Thanks!
-
I'm having trouble writing a rule to change the color of the "@" symbol to black while keeping the rest of the email address red. When I validate the rule it returns my field correctly but it is not changing the color when I preview it. I have checked and I labeled the color exactly how it is spelt in my loaded colors and I have "treat returned strings as tagged text" selected. What am I missing? Thanks! return Field("Email").replace(/@/g, '<color name="Black">@</color>');