Jump to content

Apply Point Size In Rule


Recommended Posts

I want to create an IMB Rule and place it into the RulesTemplate.English.js file and not have to assign the point size every time. So I would like to have that set in the Template rule. I know this is probably simple but, just not able to figure it out, below is my code and I want to assign the point size of 16. Thanks.


return '<f name="USPSIMBStandard">' + Field("Intelligent Mail barcode")

Link to comment
Share on other sites

Actually, it works for the one off job, but now I need to figure out how to add it to the RulesTemplate.js file. Not cooperating right now.


Got it, some simple little differences in the rule editor and the .js file can be annoying.

Edited by dreimer
Link to comment
Share on other sites

Paste this into the js file:


FusionPro.RuleTemplates["IMB"] =
   "Returns formatted IMB Field",
   "// Change field name to match your data.\n" +
   "return \'<f name=\"USPSIMBStandard\"><z newsize=\"16\">\' + Field(\"Intelligent Mail barcode\");"
   + "\n",

Edited by step
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...