I'd like to convert specific data source to all upper case. How would I do that? There is an extension for lower-casing, but not for upper-casing.

Gold Contributor
Gold Contributor
 
1 REPLY 1

I'd like to convert specific data source to all upper case. How would I do that? There is an extension for lower-casing, but not for upper-casing.

Employee Emeritus
Hey Kris, You can do this in a Set Data Values extension. If the variable you want to uppercase is page_type then you would select page_type in the "Set:" field. Select JS Code in the "To:" field.Then type "b.page_type.toUpperCase();" (Quotes not needed) in the text box on the right. So your extension would be outlined like so: Set: page_type To: JS Code b.page_type.toUpperCase(); Then you can add a condition if you only want this to take place at certain times. Hope this helps
Public