Hello,
I am trying to get attachments for pages manually, because type:attachment doesn’t load attachment for page, so I have a macro with 2 params:
“dynamicContentMacros”: [
{
“key”: “my-macro”,
“name”: {
“value”: “my Macro”
},
“url”: “/macro?page={page}&spaceKey={space.key}”,
“description”: {
“value”: “Title”
},
“categories”: [“confluence-content”],
“outputType”: “block”,
“bodyType”: “none”,
“parameters”: [
{
“identifier”: “page”,
“name”: {
“value”: “Page”
},
“type”: “confluence-content”
},
{
“identifier”: “attachment”,
“name”: {
“value”: “Attachment”
},
“type”: “enum”
}
]
}
]
i want to catch on change page in javascript , because second param depends on the first
in my view.hbs i can’t get document.getElementById(“macro-param-page”);
can i create event on params or some thing else? i don’t find docs for this
thanks