Creating limits on Document Type fields

Before handing the website over to the client, there may be a few restrictions you'd like to put in place on your document type fields for best practice.

If its a string, you can add the below to the validation (swap 155 with the maximum character limit you'd like to put in place):

 

Add this expression into your validation field: