sorich87 / bootstrap-tour

Quick and easy product tours with Twitter Bootstrap Popovers
http://bootstraptour.com
MIT License
4.44k stars 942 forks source link

Open a second tour when a step is displayed #694

Open jjojola opened 6 years ago

jjojola commented 6 years ago

I would like to have a second tour to initiate when a user gets to a step in the first tour. Any ideas on how to make this happen?

occhristian commented 6 years ago

why have a second tour, when the first step of the second tour can be the next step of the first step?

Unless, and I suppose, you want to have two different tours on two different pages? Well then, simply check the documentation again. http://bootstraptour.com/api/

Scroll down to about 85% of the page, part that says: Multipage How to traverse across pages

That should solve the problem, unless it's more complicated that I thought.

ghost commented 6 years ago

onNext : function(){ tour2.start(); } This may help but you must give a name for the 2nd tour name: "tour2"