Document Id

Hello Everyone,

I've a requirement where

In step 1 User will upload a document from Form-1 

In step 2 User can download the document which was uploaded in step 1 and can re-upload it after editing from Form-2, the only condition is  Document Id should remain as it is.

 

i.e Document_Id in step 1 is : 123456 so if user edits and then re-upload the document then Document_Id shouldn't change.

  Discussion posts and replies are publicly visible

Parents Reply
  • In fileUploadField component Target will be either document or folder (It won't accept Array value). When you provide document for 'target' property, component expects only one document to create a new version of a document.
    If you have multiple documents to replace, you can use looping function, which will generate multiple fileUploadComponents, you can replace one at a time.
    Please try below sample code.

    {
    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value: a!richTextItem(
    text: "Replace Documents",
    style: "STRONG"
    )
    ),
    a!forEach(
    items: ri!doc_documentsFromFolder,
    expression: {
    a!fileUploadField(
    labelPosition: "COLLAPSED",
    maxSelections: 1,
    target: fv!item,
    value: fv!item,
    saveInto: fv!item
    )
    }
    )
    }
Children
No Data