Adding field validation in custom Content Fragment Model's data types | Community
Skip to main content
Level 4
February 2, 2021
Question

Adding field validation in custom Content Fragment Model's data types

  • February 2, 2021
  • 0 replies
  • 940 views

Hello,

 

We have a requirement where we need to add custom field validation when creating a content fragment (CF) using a custom content fragment model (CFM).

Currently when I create a CFM, I only see some limited option like can mark field as required or specify max char limit etc. But what if i need to create a custom date field called "Age" where I can specify Regex or logic that selected date can not be in past date etc, something like that...

 

I know we can create custom data types which I can use in my CFM but I dont see option to add validations on field link Regex, compare values, compare date value with current time etc.

 

We are in AEM 6.5.5.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.