Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Quick demo on how to apply "Field Definition Rule" on Attachment picker to filter out attachments that dont end with "xls" extension


Attachment picker works on Confluence objects "Attachments" - https://docs.atlassian.com/atlassian-confluence/5.8.6/com/atlassian/confluence/pages/Attachment.html

Which means, we can access ANY property of these objects - such as fileName (as in this example) or labels, via "labelling.label" (which means we call "getLabelling" then call "getLabel" on the underlying objects), or any other "get" method


ConfiForms Form Definition
formNamemyform
trueINLINE


onlyOnly with excel filesfilter attachments and show only excel filescheckbox

apAttachmentsattachment


-- rules

only:trueapap.asAttachment.fileName:*xlsApply Filter on a fieldonly

only:falseap*Apply Filter on a fieldonly

...