Jump to content

Help! Need rule for unique character


strido

Recommended Posts

Posted

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?

Posted

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.

Posted

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)

Posted

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!?)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...