Jump to content

Apply Point Size In Rule


dreimer

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
Update
Link to comment
Share on other sites

Paste this into the js file:

 

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

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.

Guest
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...