Expand my Community achievements bar.

SOLVED

Can you create rules around File attachment feature AEM Adaptive Forms

Avatar

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

Avatar

Correct answer by
Employee 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

Avatar

Correct answer by
Employee 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

      }

     }

});