Forum Discussion
Opening an attachment in a New Tab
In RISE, I updated a course and replaced a few pdf files that were added as attachment blocks. In the RISE preview, the files open in a new tab as expected and as they have in the past.
After uploading the updated version in the LMS, the 1 attachment block that wasn't replaced with a new file continues to open in a new tab. However, the other attachment blocks with the replaced/updated files now only download and do not open in a new tab.
Is this able to be fixed or moving forward will the files only be downloaded and not opened in a new tab?
Hi AndreaMartin-99 yes, this appears to be an updated behaviour in Rise as I saw a related question recently. I would recommend doing an arbitrary update on the other documents so that they pick-up the new functionality so that it is at least consistent.
Otherwise, you could use the JavaScript I provided to another user, which removes the download attribute from the attachments, so that they continue to open in a new tab.
Uploaded PDFs no longer open in a new tab | Articulate - Community
- SamHillSuper Hero
Hi AndreaMartin-99 yes, this appears to be an updated behaviour in Rise as I saw a related question recently. I would recommend doing an arbitrary update on the other documents so that they pick-up the new functionality so that it is at least consistent.
Otherwise, you could use the JavaScript I provided to another user, which removes the download attribute from the attachments, so that they continue to open in a new tab.
Uploaded PDFs no longer open in a new tab | Articulate - Community
- AndreaMartin-99Community Member
Thank you for your help and for the suggestion!
- Diaz_BCommunity Member
Hello,
I don't know much about coding, but I would like to know where the code should be placed to change the functionality of the download button.
Thank you- SamHillSuper Hero
After publishing your project, find the main HTML file that launches the course (you may need to unzip if it's a zipped SCORM course). Then before the closing </body> tag, add some <script></script> tags and add the JavaScript in between them, and save the file.
- InfraestructuraCommunity Member
Hello,
I would like to know where I can add the code to change the functionality.
Thank you.- SamHillSuper Hero
After publishing your project, find the main HTML file that launches the course (you may need to unzip if it's a zipped SCORM course). Then before the closing </body> tag, add some <script></script> tags and add the JavaScript in between them, and save the file.