AEM Cloud - Unable to make Featured image field mandatory in page properties | Community
Skip to main content
Level 3
December 7, 2022
Solved

AEM Cloud - Unable to make Featured image field mandatory in page properties

  • December 7, 2022
  • 1 reply
  • 1076 views

Hi All,

I have a requirement to make the featured image mandatory on AEM cloud instance, so that the authors will be forced to upload the image at the time of page creation.

 

I tried by adding required {Boolean} true to the file, but I can only see the '*' sign shown up next to the Image field name, but authors can save/create the page, even without uploading any image.

 

Can anyone please help or advise. Thanks in advance.

 

 

 

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

Hi @smrithi_govind ,

 

Please try changing sling:resourceType =  granite/ui/components/coral/foundation/form/fileupload

 

FileUpload — Granite UI 1.0 documentation (adobe.com)

 

Thanks,

Nikita Garg

1 reply

Nikita___GargAdobe EmployeeAccepted solution
Adobe Employee
December 7, 2022

Hi @smrithi_govind ,

 

Please try changing sling:resourceType =  granite/ui/components/coral/foundation/form/fileupload

 

FileUpload — Granite UI 1.0 documentation (adobe.com)

 

Thanks,

Nikita Garg