dreimer Posted December 18, 2013 Share Posted December 18, 2013 So I am trying to superscript a register symbol that is in my data field. It is the actual symbol and not an ascii code. I tried the following rule but it didn't work. Any ideas?? Do I need to convert the symbol to ascii in the data? var s = Field("Description"); return s.replace(/\$/g,"<superscript>®</superscript>"); Quote Link to comment Share on other sites More sharing options...
step Posted December 18, 2013 Share Posted December 18, 2013 That code is replacing a dollar sign with a superscripted reg mark. Try this: var s = Field("Description"); return s.replace(/®/g,"<superscript>®</superscript>"); Though, I would suggest replacing ® with ® in the data so to avoid running into font issues across mac & windows platforms and then edit the code to look for: var s = Field("Description"); return s.replace(/®/g,"<superscript>®</superscript>"); Quote Link to comment Share on other sites More sharing options...
dreimer Posted December 18, 2013 Author Share Posted December 18, 2013 (edited) Just realized I made that dumb mistake!! Thanks for the tip on using the other code, I already made the change in the data. Thanks again Edited December 18, 2013 by dreimer 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.