Jump to content

Superscript within existing Switch rule template


Brad Sawatzky

Recommended Posts

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

Link to comment
Share on other sites

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";

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...