strido Posted July 29, 2011 Posted July 29, 2011 So here's the story: My customer has a field for the signature, called "CustomLine 01". This is to use a font they provide called "dakota". In some, not all of the signatures there appears the ® symbol. Dakota does not include this, it's a very barebones font. Can I make a rule to search for all instances of that, and change it to like Arial or whatever so it doesn't output as a square?
step Posted July 29, 2011 Posted July 29, 2011 Give this a try: return Field("CustomLine 01").replace("®","<f name=\"Arial\">®</f>"); Make sure that you have "Treat returned strings as tagged text" checked in your rule editor.
strido Posted July 29, 2011 Author Posted July 29, 2011 Sweet! Thanks! (er...now they want it superscript of course) Any ideas? Now it appears it's only changing the first instance of the ® grrr (there are two of 'em in the field)
strido Posted July 29, 2011 Author Posted July 29, 2011 So to summarize, I need a rule that will change all instances of the registered symbol to arial, and make them superscript.... (never easy is it!?)
Andre Globensky Posted July 29, 2011 Posted July 29, 2011 Hi strido, try this lcFieldContent = "Acme ® and Acme 2 ®" return ReplaceSubstring(lcFieldContent,"®","<f name=\"Arial\"><superscript>®</superscript></f>")
Andre Globensky Posted July 29, 2011 Posted July 29, 2011 that was my test var, here you go lcFieldContent = Field("CustomLine 01") return ReplaceSubstring(lcFieldContent,"®","<f name=\"Arial\"><superscript>®</superscript></f>")
Recommended Posts
Archived
This topic is now archived and is closed to further replies.