Hi,
I am using PPC Designer 2018.2.1.54383
I have a string of text from an XML file that is in all capital letters. I would like to transform it to where each word is capitalized. I wrapped the variable name in a as follows: @variable@<\span>. The text remains in all upper case. I tried the “lowercase” option and it worked.
Does anyone have any ideas? Thanks
try string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
, where string
is the string value you want to modify.
Hi,
Should this code be added to the Javascript for the field or should I put it in the inline html with tags?
I used the following Post function on the Extract Step field Definition:
replace(/\w\S*/g, function(txt) {return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
2 Likes