I am trying to use multiple file upload rule. It works, but I need to make that

I am trying to use multiple file upload rule. It works, but I need to make that component required (at least one doc must be uploaded).
This is my SAIL:

a!sectionLayout(
          label:"Supplier's Economic Offer",
          firstColumnContents:{
           a!applyComponents(
function: rule!ucMultiFileUploadRenderField(label: "Upload Files", files: ri!supplierFiles, target: ri!supplierTarget, index: _),
array: 1 + fn!enumerate(1 + length(ri!supplierFiles))
                    
)
          },
          secondColumnContents:{....

How can I reach requireness? Thanks!...

OriginalPostID-105893

OriginalPostID-105893

  Discussion posts and replies are publicly visible

  • In case you didn't get a response...

    /*                    Make at least 1 attachment required */
                        if(
                                   and(length(ri!allDocuments)=0,ri!required),
                                            a!textField(
                                             readOnly: true,
                                             value: "Document Required",
                                             validations: if(and(length(ri!allDocuments)=0,ri!required),"One or more Documents must be attached: "&ri!requiredReason,null)
                                  ),
                                                      {}
                                  )
  • If a process participant adds a document, then removes a document, it appears to work, however, when I display the contents of the folder on a subsequent screen, the removed documents still appear. Any idea how to delete documents that have been removed from the folder?