0

I am trying to trigger a menu that opens up when the page tour starts and closes it when the page tour closes. Below is the code

step2.on("show", () => {
            if (!Feature) {
                tour.complete();
            }
            else {
                toggleHelpMenu()
            }
        });
        tour.on('complete', () => {
                toggleHelpMenu()
            this.dashboard.pageTourSwitchOrientationStep(this.currentProgressStepId);
        });
        tour.on('cancel', () => {
            this.dashboard.pageTourSwitchOrientationStep(this.currentProgressStepId);
        });
        function toggleHelpMenu() {
            $("#vFooterContentSupportEmailArea").trigger('click');
        }

at step 9, when the tour step is open, I can see click event triggers successfully. However when tour completes at 'tour.on('complete')', click event is not triggering.

3
  • where do you trigger the complete event for tour?
    – GrafiCode
    Commented Mar 29, 2022 at 17:16
  • it triggers itself when the page tour ends. I can see that toogleHelpMenu hits but does not trigger a click event.
    – Rnue
    Commented Mar 29, 2022 at 17:27
  • @GrafiCode, it triggers when I click the end tour button. Also, I am using the shepherd page tour
    – Rnue
    Commented Mar 29, 2022 at 17:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.