Can you create rules around File attachment feature AEM Adaptive Forms | Community
Skip to main content
lukep69648506
New Participant
May 6, 2019
Solved

Can you create rules around File attachment feature AEM Adaptive Forms

  • May 6, 2019
  • 1 reply
  • 1639 views

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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

Yes, you can try below approach.

script:

window.guideBridge.getFileAttachmentsInfo({

     success:function(list) {

      if(list.length>0){

       //show the fragment

      }

     }

});

1 reply

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
May 6, 2019

Yes, you can try below approach.

script:

window.guideBridge.getFileAttachmentsInfo({

     success:function(list) {

      if(list.length>0){

       //show the fragment

      }

     }

});