Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Content reference data attribute is not mandatory when page loads first time

Avatar

Level 1

Hi All,

We are creating Content Fragment Model using "content reference" data attribute. To make it a mandatory field we have enabled following property i.e. "required = on".

When we are actually creating content fragment using above model then at the very first the said field (content reference) is not mandatory and we can save content fragment while leaving the field empty. on top of that we can see * mark (As mandatory field) in Label.

Once we drag/focus on the field (i.e. content reference field) then it behaves / work like a mandatory field.

For example:

Screenshot-1 shows Title, Date & Time, Main Image and Thumbnail Image all are mandatory fields but (content reference) Main Image and Thumbnail Image both are not showing in RED as mandatory.
Screenshot-1.png

Screenshot-2 shows Title and Date & Time have content now but (content reference) Main Image and Thumbnail Image both are empty and we can save content fragment.
Screenshot-2.png

Screenshot-3 shows Main Image is mandatory now as we have focused on that field.
Screenshot-3.png

any suggestions / comments .. on why it's not working as a mandatory field at the very first time when page loads.

Thanks in advance !!

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Employee

It seems to be a product issue, please open a support case and we will log a JIRA