Hide navigation buttons on Web Portal

Hi,

I’ve moved the functionality of the next button in the Web Portal to a custom button I created using the Generic Javascript View. The code I used to move the functionality is:
<button onclick="parent.document.querySelector('.knime-step-next-button').dispatchEvent(new Event('click'));">Test Next</button>

However I would like to disable and hide the Next Button, so that users have to use the custom button only. Can anyone suggest how this can be done?

Thanks in advance,
Thomas

Hi,
To hide the button, you can use the following code:

parent.document.querySelector('.knime-step-next-button').style.display = "none";

Kind regards,
Alexander

4 Likes

Thanks! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.