Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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.

 

smrithig4775845_0-1670397223838.png

 

smrithig4775845_1-1670397274222.png

 

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @smrithig4775845 ,

 

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

 

FileUpload — Granite UI 1.0 documentation (adobe.com)

 

Thanks,

Nikita Garg

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi @smrithig4775845 ,

 

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

 

FileUpload — Granite UI 1.0 documentation (adobe.com)

 

Thanks,

Nikita Garg