New Validation Properties for Better Tractability

We have introduced a couple of validation properties for the “File” field and one validation for the “Date” field, including:
1. “Allowed file type(s)” for the “File” field
The “Allowed file type(s)” property lets you specify the types of files that the user will be allowed to upload. This helps you restrict users from uploading files that are not required or acceptable. A case in point is a registration form, where the user is required to upload photos in JPEG or PNG formats only or identity proof in PDF format.
2. “File size limit” for the “File” field
The “File size limit” property lets you specify limitations on the size of the file that can be uploaded by the user. You can set maximum as well as minimum limit for the size of the file to be uploaded.
3. “Set date range” for the “Date” field
The “Set date range” property lets you specify a range of dates from which the user will be allowed to select a date. You can set a start date and an end date of the range. This will restrict the user from selecting any date outside of the specified range. An example would be a date field in an event registration form, where the event is for a week or a month. By setting a date range, you can ensure that the attendee is allowed to select a date only from the specified date range.
Custom Validation Error Message Support
You can now add custom error messages for failed validations set for the fields of your content type. This can be done by using the Validation Error Message property, which we have introduced in this release. This property is available for single-line as well as multi-line text box fields. For instance, if you have set a validation for checking if the value entered is an email address, you can set a custom error message like “Please enter a valid email address,” which will be displayed if the user fails to do so.
About Contentstack
The Contentstack team comprises highly skilled professionals specializing in product marketing, customer acquisition and retention, and digital marketing strategy. With extensive experience holding senior positions at renowned technology companies across Fortune 500, mid-size, and start-up sectors, our team offers impactful solutions based on diverse backgrounds and extensive industry knowledge.
Contentstack is on a mission to deliver the world’s best digital experiences through a fusion of cutting-edge content management, customer data, personalization, and AI technology. Iconic brands, such as AirFrance KLM, ASICS, Burberry, Mattel, Mitsubishi, and Walmart, depend on the platform to rise above the noise in today's crowded digital markets and gain their competitive edge.
In January 2025, Contentstack proudly secured its first-ever position as a Visionary in the 2025 Gartner® Magic Quadrant™ for Digital Experience Platforms (DXP). Further solidifying its prominent standing, Contentstack was recognized as a Leader in the Forrester Research, Inc. March 2025 report, “The Forrester Wave™: Content Management Systems (CMS), Q1 2025.” Contentstack was the only pure headless provider named as a Leader in the report, which evaluated 13 top CMS providers on 19 criteria for current offering and strategy.
Follow Contentstack on LinkedIn.

