dreimer Posted September 28, 2012 Share Posted September 28, 2012 Is there an easy way to subscript a dollar sign that is part of a field. For example I have: "$25-$500 Big 5 Sporting Goods" or "$34.95/$39.95 FryDaze Phone or Tablet" Was hoping to drop the field in as one and not have to break up the string into multiple fields to assign formatting. This is how I did it for a very small amount of variables previously but the job is getting larger and larger. Any help would be greatly appreciated! Quote Link to comment Share on other sites More sharing options...
step Posted September 28, 2012 Share Posted September 28, 2012 (edited) Sure: var s = Field("YOUR FIELD NAME"); // replace with your field return s.replace(/\$/g,"<superscript>$</superscript>"); Edited September 28, 2012 by step added closing CODE tag Quote Link to comment Share on other sites More sharing options...
dreimer Posted September 28, 2012 Author Share Posted September 28, 2012 Ridiculous, thank you very much!!!! 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.