All About Validation with the Contentstack SaaS Headless CMS

This blog post contains information about validating data with the Contentstack SaaS headless content management system.

Throughout the system, roles and access rights validate which users can perform what operations.

Contentstack provides some basic field validation options.

In each global field and content type, each field can be mandatory, requiring the user to enter a value.

A unique field does not allow the same value in multiple entries for a single content type.

A non-localizable field does not allow translation.

The type of the field controls the user interface that appears for the field, where that user interface can perform validation, and the back-end also validates formats and data. Date fields require that the user enter a valid date, possibly with a time, and can specify earliest and latest allowed dates. Image fields can validate dimensions. File fields can restrict file types and limit file sizes.

Text fields allow validation of minimum and maximum lengths. You can also specify regular expression to validate the format and value in text fields.

You can configure features available in the Rich Text Editor, which can serve as a form of validation.

You can implement custom validation in custom field types.

You can use workflow and publish rules for validation. You can use manual processes in workflow to apply validation. For example, a reviewer could evaluate a validation report provided by a widget and determine whether to correct the issues, reject, or approve the content.

While validation is important, it may not be possible to apply all necessary validation within in the CMS, and excess validation can interfere with content management productivity. Some validation is not possible until after publication merges content with presentation. Tools intended specifically for site analysis have advantages over any CMS solution. In addition to validating data during content management, consider using third-party tools that access the published site and prioritize issues such as accessibility, broken links, Search Engine Optimization suggestions, XHTML compliance, performance, security, and other criteria.

Custom widgets cannot prevent users from saving entries with invalid data, but they can make suggestions to the CMS user. While the user edits an entry, one or more widgets can make suggestions. You can implement a validation custom field or widget based on the following information.

If you have any additional information about validating data with the Contentstack SaaS headless CMS, please comment on this blog post.

One thought on “All About Validation with the Contentstack SaaS Headless CMS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: