Brad Sawatzky Posted August 23, 2012 Share Posted August 23, 2012 Hey all, I'm working on a business card template that requires a switch rule to populate an address field. Switch rule works just fine, only problem is I need to superscript the letters following the street number. I've found threads that address superscript, but I just can't seem to orchestrate them into anything that resembles what I'm after. If anyone can give me hand, I'd sure appreciate it. Thanks Quote Link to comment Share on other sites More sharing options...
step Posted August 23, 2012 Share Posted August 23, 2012 Can you post your current code please? Quote Link to comment Share on other sites More sharing options...
Brad Sawatzky Posted August 23, 2012 Author Share Posted August 23, 2012 switch (Field("Address1").toLowerCase()) { case "1".toLowerCase(): return "<br>1720, 633 - 6th Avenue, SW<br>Calgary, Alberta"; case "2".toLowerCase(): return "530 Canal Street<br>PO Box 2017<br>Brooks, Alberta"; case "3".toLowerCase(): return "<br>Site 1 Comp. 2 RR 1<br>Blackfalds, Alberta"; case "4".toLowerCase(): return "<br>3335 - 33rd Street<br>Whitecourt, Alberta"; case "5".toLowerCase(): return "<br>9011 - 154th Avenue<br>Grande Prairie, Alberta"; Quote Link to comment Share on other sites More sharing options...
step Posted August 23, 2012 Share Posted August 23, 2012 switch (Field("Address1").toLowerCase()) { case "1".toLowerCase(): return "<br>1720, 633 - 6<superscript>th</superscript> Avenue, SW<br>Calgary, Alberta"; case "2".toLowerCase(): return "530 Canal Street<br>PO Box 2017<br>Brooks, Alberta"; case "3".toLowerCase(): return "<br>Site 1 Comp. 2 RR 1<br>Blackfalds, Alberta"; case "4".toLowerCase(): return "<br>3335 - 33<superscript>rd</superscript> Street<br>Whitecourt, Alberta"; case "5".toLowerCase(): return "<br>9011 - 154<superscript>th</superscript> Avenue<br>Grande Prairie, Alberta"; Make sure you have "return strings as tagged text" checked. Quote Link to comment Share on other sites More sharing options...
Brad Sawatzky Posted August 23, 2012 Author Share Posted August 23, 2012 Hey Step, Works like a charm. Much apperciated! Next time you're in Calgary, drinks are on me. Thanks again Quote Link to comment Share on other sites More sharing options...
Brad Sawatzky Posted August 23, 2012 Author Share Posted August 23, 2012 ** appreciated Quote Link to comment Share on other sites More sharing options...
step Posted August 23, 2012 Share Posted August 23, 2012 haha thanks, glad I could help! 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.