I have a webpage where when user clicks a button it generates an url to a pdf document. Then a pop-up is displayed where the user can click a button to see the pdf document in another tab and another button that downloads the document (without opening it).
I can't get the last one to work. I know that the a tag "download"
attribute does the thing but not sure how to add such attribute to an existing element.Tried using an html embeded component and tried to add the attribute by getting the element by Id but doesn't work either since the element id it's not the same as in the editor.