Jump to content

Changing Case of Text Resource in a Rule


Recommended Posts

Hi All!


We have 60 formatted text resources in a business card template. The customer has decided they want to change everything to all caps now.


We tried updating our rule to include case but it didn't work.

if (Field("Location")=="La Praire")
return '<allcaps>'+Resource("La Praire")+'</allcaps>'


Is it possible to incorporate changing the case in our address rule that returns the resource or do we have to update every text resource?




I appreciate any help.


Link to comment
Share on other sites

This will probably work:

return ToUpper(Resource("La Praire").content);

Or, if you already have a Switch rule (or another kind of rule) that's returning Formatted Text Resources, you can just call out that rule from another rule that puts it in all caps, something like:

return ToUpper(Rule("Address").content);

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.

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...