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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Can you create rules around File attachment feature AEM Adaptive Forms

lukep69648506
Level 1
Level 1

I am building out an adaptive form and need customers to upload a file. This works as expected but I would like to write a rule that shows a "user details"  form fragment once a file has been successfully chosen from the aforementioned file attachment feature.

Is this possible?

Example

<FORM>

File upload button

<Use details Fragment>

Name

email

form

</fragment>

1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Yes, you can try below approach.

1747321_pastedImage_0.png

script:

window.guideBridge.getFileAttachmentsInfo({

     success:function(list) {

      if(list.length>0){

       //show the fragment

      }

     }

});

View solution in original post

1 Reply
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Yes, you can try below approach.

1747321_pastedImage_0.png

script:

window.guideBridge.getFileAttachmentsInfo({

     success:function(list) {

      if(list.length>0){

       //show the fragment

      }

     }

});

View solution in original post