Wizard skip tabs

Good day,
Is it possible to skip page in next button in wizard?
I'm trying to add condition in clicking next step.

    fd.container('Wizard1').widget.$on('on-change', function(prevIndex, newIndex) {
                 if (prevIndex == 0){
                         fd.container('Wizard1').widget.navigateToTab(4);
                  }
    });

I tried to use ' fd.container("Wizard0").widget.$on("update:startIndex", function() {' or 'on-change' but once I clicked next, this function is being called multiple times

Hello @Jes_Santimosa,

I'm sorry, I've addressed the question to developers.
I will reply to you as soon as I get a feedback from developers.

Hello @Jes_Santimosa,

I'm sorry that it took that long. Try out this code:

fd.container('Wizard1').widget.$on('on-change', function(prevIndex, newIndex) {
    if(prevIndex == 0){
        window.setTimeout(function() {
                fd.container("Wizard1").widget.navigateToTab(4)}, 100)
    }
});

Hi @mnikitina,

This is working fine for "next" button however even when clicking the "back" button the condition will be met, and will automatically navigate to diff page. Is there a way to handle this?

@Jes_Santimosa,

You can check the index of the next step too. Thus the step won't open if user clicks 'Back':

fd.container('Wizard1').widget.$on('on-change', function(prevIndex, newIndex) {
    if(prevIndex == 0 && newIndex == 1){
        window.setTimeout(function() {
                fd.container("Wizard1").widget.navigateToTab(4)}, 100)
    }
});