Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

AEM 62 - Support Required (Validator) on FileUpload (Image) in Touch UI Dialog

Avatar

Level 8

Hi All,

I have a very similar requirement as mentioned by Sreekanth in one of his articles.

Have added the categories, dependencies properties and have the attribute required = true set on the image in the dialog. However, even when I put the image into the field, it still throws up a message stating "Please fill out this field".

http://experience-aem.blogspot.in/2016/05/aem-62-support-required-validator-on-file-upload-image-in-...

Any pointers/suggestions as to how to rectify this will be really helpful.

3 Replies

Avatar

Level 8

Hi Scott,

Thank you for your reply.

Followed the same steps mentioned in article, but no luck.

Avatar

Level 1

Hi Scott,

Please could you let me know if there is a hotfix for this issue? The code provided in the link above doesn't work as a generic solution, it can be made generic by commenting out the following code in it, but this fixes only if a component has only one required image field, for multiple required image fields this doesn't work.

//if not an image component dialog, return

        if((editable.type !== COMPONENT) || _.isEmpty($fileName)){

            return;

        }