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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Capitalize letters, add exception.


Level 1


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.

0 Replies