Creating dynamic file name for file download - Client Side

Creating dynamic file name for file download - Client Side

How do i allocated a file name to my file download.

As i have tried to bind the file name but with no luck.
dmx-bind:filename="documentlist.data.query[0].document_title"
My use case will be a repeat of documents with a download click event, but i cannot get the file name attached to the download.

This is the result
2

In the editor i can manually add the dynamic link.. but now file name

It would be great if

But for now is there a different solution?

As one can add a filename to the download.. If one use the component directly, but the issues is then... how to i use it as a repeat on each file?

Ok i kind have found a work around... *** as im sure im stupid and did not understand how the "file donwload" works ***

I use my repeat... then send the queries to a page that has only does the download... and set the file name.. so the download does not happen on the "repeat query" page.. but on the single page for downloads

I dont know if its the correct way.. but it works.. :slight_smile: