Download Associated Documents to Form

User can Download a zip file containing all the associated documents of the form via a button click within AppBuilder forms.

 

To download zip file of all External attachments, Users need to design client side script which is given below.

 

 

AppBuilder Design Requirements:

 

o   AppBuilder form design should have a button control on the view to Download external attachments

o   JavaScript should be called from the rule on the button.

o   Any other rule on the button will not be executed once this rule is written

o   To write the rule (refer snapshot below):

1.    Double click the button

2.    Click on rules button and Add a rule with rule name as : ‘InfoJetSoft.Rules.HtmlOnChange’

3.    Condition to be set to false()

4.    Select ‘Show dialog message’ action

5.    Write the following script in message body:

Function ( sender, args ){ calldownloadAllAssocDocsZip(); }

 

 

Functionality flow: (Refer snapshot below)

 

Click on Download form button

 

 

All Document Associated Documents to which the user has access to will be downloaded in a single zip file.