내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

AEM6.3 coral touch ui bypass required image using javascript

Avatar

Level 8

Hi ,

i have fileupload marked as mandatory for image field but since i am doing some java-script manipulation, hence  I need to bypass this and still submit the dialog even if the image is empty.

Please let me know how this can be achieved.

<image

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="cq/gui/components/authoring/dialog/fileupload"

                                        autoStart="{Boolean}false"

                                        class="cq-droptarget"

                                        fieldDescription="The  Image ."

                                        fieldLabel=" Image"

                                        fileNameParameter="./image/fileName"

                                        fileReferenceParameter="./image/fileReference"

                                        mimeTypes="[image]"

                                        multiple="{Boolean}false"

                                        name="./Image"

                                        required="{Boolean}true"

                                        title="Upload Image Asset"

                                        uploadUrl="${suffix.path}"

                                        useHTML5="{Boolean}true"/>

Thanks

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

If you need required field to work and make it not to work with ur custom then first try to understand how required validation is working and how is it getting called then try writing ur custom code similar to required validation

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Employee Advisor

Have you tried removing required="{Boolean}true"

Avatar

Level 8

It is mandatory field .Still need to bypass it

Avatar

Level 8

Any inputs from any one??

Avatar

정확한 답변 작성자:
Community Advisor

If you need required field to work and make it not to work with ur custom then first try to understand how required validation is working and how is it getting called then try writing ur custom code similar to required validation