Solved

Are field validations possible in Contentstack?

  • 11 August 2022
  • 2 replies
  • 188 views

Can we perform some form of validation of the Content Fields to restrict Content Editors from making incorrect entries? e.g Max number of characters allowed for a field, restrict special characters in a Name field or validate an email or phone number entry. Any help will be much appreciated, Thanks.

icon

Best answer by ronbreger 11 August 2022, 21:48

View original

2 replies

Badge

You can find validation rules that can set from the advanced field properties.That allows to set min/max characters, regex, along with Validation error message.


Also Sharing link to Contentstack documentation that might be helpful to understand validation with fields.Click here  
I hope that helps!

Userlevel 2

In the event that you need to do something very custom, you can take a look at this unofficial custom field validation that is an example from the Solutions Architects team. 

https://github.com/Contentstack-Solutions/some-extensions/blob/main/custom-validation/custom-validation.html

 

And some other possibly useful extensions that many of our customers use!
https://github.com/Contentstack-Solutions/some-extensions

 

Cheers,

Ron Breger | Customer Success

Reply