Document Drop down

Hi folks, 

 

Is there a way to implement a document drop down? Not a document picker but a document drop down where documents from a particular folder are displayed and can be chosen. 

 

TIA. :) 

  Discussion posts and replies are publicly visible

Parents Reply
  • I have tried this code and the values dont poplate on the dropdown:

    load(
    local!doc: null,
    local!doc: tointeger(
    a!forEach(
    items: cons!FOLDER__ID,
    expression: folder(
    fv!item,
    "documentChildren"
    )
    )
    ),
    with(
    a!dropdownField(
    label: "Document",
    choiceLabels: {
    a!forEach(
    items: local!doc,
    expression: document(
    documentId: fv!item,
    property: "name"
    )
    )
    },
    choiceValues: {
    a!forEach(
    items: local!doc,
    expression: document(
    documentId: fv!item,
    property: "name"
    )
    )
    },
    placeholderLabel: "Select a document...",
    value: local!doc,
    saveInto: local!doc
    )
    )
    )
Children
No Data