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

Capitalize letters, add exception.

Avatar

Avatar
Validate 1
Level 1
guilhermes88107
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
guilhermes88107
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
guilhermes88107
Level 1

09-03-2018

Hello.

I use the script below to capitalize first letter on each word of text field.

this.rawValue = this.rawValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return  match.toUpperCase(); });

So, I would like to know how add exception words for example: "dos" and "das".

I've been looking for the answer in the Adobe forums but I couldn't find it.

Could someone help me or show the way?

Thank ou very much.

Accepted Solutions (0)

Answers (0)