Trigger a guide using the following method
userGuiding.previewGuide(guide_id)
You can find guide_id
on Guides page. You should go to the settings of the corresponding guide. There you will see the ID value in the title section. (See image below)
For example; you can add a simple HTML button as below.
<button onclick="window.userGuiding.previewGuide(1563)">See User Guide</button>
Don't trigger the guide if it's already seen by user
userGuiding.previewGuide(guide_id, {
checkHistory: true,
})
If you use this option, guide will be triggered if it is not seen by user before and guide matches its segments.
Start from a specified step
userGuiding.previewGuide(guide_id, {
initialStep: 2,
})