Skip to main content
Solved

Title case capitalization

  • April 23, 2024
  • 2 replies
  • 379 views

Forum|alt.badge.img+2

Is it possible to force capitalization on words in Text (short-text) fields or have it change to capitalization upon save in eSignature? e.g. first name, last name.

Thank you!

Best answer by Alexandre.Augusto

Hello, @KarenN 

 

You are welcome to the Docusign Community!

 

It’s possible to add a Text field in your document then use the Validation option. Using a REGEX expression you can force the signer to type only in Upper Case.

 

See some examples at Regex library, although there are many other sites explaining how to use REGEX as well with ready to use examples.

https://regexlib.com/Search.aspx?k=upper+case&c=-1&m=-1&ps=20

 

I hope that helps!

Alexandre 

2 replies

Alexandre.Augusto
Docusign Employee
Forum|alt.badge.img+18

Hello, @KarenN 

 

You are welcome to the Docusign Community!

 

It’s possible to add a Text field in your document then use the Validation option. Using a REGEX expression you can force the signer to type only in Upper Case.

 

See some examples at Regex library, although there are many other sites explaining how to use REGEX as well with ready to use examples.

https://regexlib.com/Search.aspx?k=upper+case&c=-1&m=-1&ps=20

 

I hope that helps!

Alexandre 


Forum|alt.badge.img+2
  • Author
  • New Voice
  • April 24, 2024

Fabulous, thanks Alexandre. Very helpful!

 

For anyone else with the same question:

For First Name I made the first letter of each name needing a Capital letter (up to 3 names) by using:

      ^([A-Z]+[a-zA-Z]*)(\s|\-)?([A-Z]+[a-zA-Z]*)?(\s|\-)?([A-Z]+[a-zA-Z]*)?$

 

For Last Name I used ([A-Z\s])([a-z\s]){1,30}\s*$ to enforce a Capital letter in at least one name in the Last Name field (e.g. de Souza) which worked great except for names with apostrophes in them, so I had to remove it.

If anyone reading this knows how to amend it to also work for names with apostrophes that would be great please!

 

Thank you!