Forum Discussion

AndreaMartin-99's avatar
AndreaMartin-99
Community Member
2 months ago

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

  • 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

  • Diaz_B's avatar
    Diaz_B
    Community 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

    • SamHill's avatar
      SamHill
      Super 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.

  • Hello,


    I would like to know where I can add the code to change the functionality.


    Thank you.

    • SamHill's avatar
      SamHill
      Super 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.