How to hide document viewer field once opened?
Hello everyone!
Im just toggling with the documentViewerField function and would like to know how to hide the documentViewerField once the user clicks on the dynamic field [that opens up the field]. I've tried toggling with the code for a while but was not successful. Any advice, tips, guidance is welcomed [emoticon:c4563cd7d5574777a71c318021cbbcc8]
Code:
a!localVariables(
local!documents: {47149, 47150},
local!link,
a!forEach(
items: local!documents,
expression: {
a!linkField(
links: a!dynamicLink(
label: "Click Here to View File: " & document(documentId: fv!item, propertiy: "name"),
value: fv!item,
saveInto: local!link
)
),
a!documentViewerField(
document: fv!item,
showWhen: fv!item = local!link
)
}
)
)