dreimer Posted November 20, 2012 Share Posted November 20, 2012 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") Quote Link to comment Share on other sites More sharing options...
step Posted November 20, 2012 Share Posted November 20, 2012 return '<f name="USPSIMBStandard">[color="Red"]<z newsize="16">[/color]' + Field("Intelligent Mail barcode"); Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 20, 2012 Author Share Posted November 20, 2012 Perfect thanks step. I promise I will continue to try and remove the novice from my signature!!!! Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 20, 2012 Author Share Posted November 20, 2012 (edited) 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 November 20, 2012 by dreimer Update Quote Link to comment Share on other sites More sharing options...
step Posted November 20, 2012 Share Posted November 20, 2012 (edited) 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 November 20, 2012 by step Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 20, 2012 Author Share Posted November 20, 2012 Thanks for that step, but I have already figured it out and have it set to always use the same field name since it will always be the same field coming in from my presorting software used to create the IMB. 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.