Turn on/off the bookmark toggle button from bookmarkpanel

Product:

Product Version: 10.6.0

Please give a brief summary of your issue:
Programmatically turning on/off the “View Bookmark on Page” instead of manual turning on/off.
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:

is there a way to programmatically turning on/off the “View Bookmark on Page” instead of manual turning on/off.

(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Thanks.

Thank you for posting your question to our forum. We will provide you with an update as soon as possible.

Hello Arjun,

Thank you for contacting WebViewer Forums.

We can achieve this with JS by accessing its element and invoking the click() function.

document.querySelectorAll("#bookmark-view-option").forEach(el=>el.click())

Regards,
Luke
Web Development Support Engineer
Apryse Software Inc.