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-1.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24770i364A1AE86BF7D027/image-size/medium/is-moderation-mode/true?v=v2&px=400)
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-2.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24771i1E85EDBD818E221D/image-size/medium/is-moderation-mode/true?v=v2&px=400)
Screenshot-3 shows Main Image is mandatory now as we have focused on that field.
![Screenshot-3.png Screenshot-3.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24772i56D91C05EBD9E1EC/image-size/medium/is-moderation-mode/true?v=v2&px=400)
any suggestions / comments .. on why it's not working as a mandatory field at the very first time when page loads.
Thanks in advance !!