Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Proper function in ACS

Avatar

Avatar
Validate 1
Level 1
pushpad15690171
Level 1

Likes

2 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pushpad15690171
Level 1

Likes

2 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pushpad15690171
Level 1

02-04-2021

I need to use a proper function to change the case of any field to proper (first letter capital rest small, but acs is not taking this function what can be done?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
Xyborg
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
Xyborg
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
Xyborg
Level 1

07-04-2021

You could use Smart() inside a workflow:
https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/filterin...

SmartReturns the string with the first letter of each word in capitalsSmart(<string>)

 

In my case, I created the following content block so I would be able to do the same on single shot deliveries:

<%=context.profile.firstName.toLowerCase().replace(/(^\w{1})|(\s+\w{1})/g, function(e){return e.toUpperCase();})%>

 

The code shared before, will do what you need with every word in the field, in this case I am targeting the "firstName". This is useful when you have names like "john lucas" -> "John Lucas", as the other functions I found out there only changed the first character ("John lucas").

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
ramon_bisswange
Employee

05-04-2021

At which place do you need the function?

Inside a workflow, import, E-Mail, ...?