Forum Discussion

SaraMcCartney's avatar
SaraMcCartney
Community Member
10 years ago

Does anyone know of a way to change the "next" button to an "end" button at the end of a story?

Hello!

I'm trying to find a way to change the "next" button in Articulate Storyline 2 to an "end" button at the end of the presentation that would take the users out of the story...does anyone know if this is possible, and if it is, how you might go about doing it? 

 

Thanks!

  • BarMazuz's avatar
    BarMazuz
    Community Member

    Try the following JS:

    1. Change the NEXT text button to some other text like “skip”:

     

    function changeNextToSkip() { let buttons = document.querySelectorAll('button'); buttons.forEach(button => { if (button.textContent.trim().toUpperCase() === 'NEXT') { button.innerHTML = button.innerHTML.replace('NEXT', 'SKIP'); } }); } changeNextToSkip();

     

    Change back to the usual NEXT:

     

    function changeSkipToNext() { let buttons = document.querySelectorAll('button'); buttons.forEach(button => { if (button.textContent.trim().toUpperCase() === 'SKIP') { button.innerHTML = button.innerHTML.replace('SKIP', 'NEXT'); } }); } changeSkipToNext();