How to use custom regex in Dropbox Sign

Updated Sep 23, 2025

In this article

person icon

The information in this article applies to customers on Dropbox Sign Premium plans.

Custom regex is a method used in programming for pattern matching, and is a type of data validation. Supported JavaScript regexes would be supported in this custom data validation. 

Custom regex is a validation option for textbox fields on your documents.

To add custom regex:

  1. Add a textbox field to your document.
  2. Select the textbox.
  3. Click the Validation dropdown in the right sidebar, and select Custom regex.
  4. Enter your custom regex under Specify a regular expression, such as [A-Z][a-zA-Z]+,[ ]?[A-Z]{2}.
  5. Enter a description under Regex label, such as “City, ST”. This text will appear in the error message that shows if an entry does not match your requirements.
Was this article helpful?

Let us know how why it didn't help:

Thanks for letting us know!

Thanks for your feedback!

Community answers

Other ways to get help