strido Posted July 29, 2011 Share 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? Link to comment Share on other sites More sharing options...
step Posted July 29, 2011 Share 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. Link to comment Share on other sites More sharing options...
strido Posted July 29, 2011 Author Share 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) Link to comment Share on other sites More sharing options...
strido Posted July 29, 2011 Author Share 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!?) Link to comment Share on other sites More sharing options...
Andre Globensky Posted July 29, 2011 Share Posted July 29, 2011 Hi strido, try this lcFieldContent = "Acme ® and Acme 2 ®" return ReplaceSubstring(lcFieldContent,"®","<f name=\"Arial\"><superscript>®</superscript></f>") Link to comment Share on other sites More sharing options...
strido Posted July 29, 2011 Author Share Posted July 29, 2011 lcFieldContent is not defined..... Link to comment Share on other sites More sharing options...
Andre Globensky Posted July 29, 2011 Share 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>") Link to comment Share on other sites More sharing options...
strido Posted July 29, 2011 Author Share Posted July 29, 2011 Looks like that did the trick! Thanks alot! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.