Im trying to fetch steps with ajax calls coz I need to check some conditions based on user settings before showing next step .
Im fetching next step on onShown method and returning promise in onNext() method . I defined first step and then next one's has to come up with ajax :
Here is my js :
Now problem im facing here after step 2 is executed it shows step 2 again .It does not increment to step 3 and all of this happen when Im using reflex .In case of "reflex " it is executing next step quickly and does not wait for anything . Even when Im returning promise to it in onNext method . In onShown method it is not returning correct step and is showing step 1 even on step 2 . (staring from step based on tour object in which steps start from 0) .
What could be wrong with current step in onShown method ?
Also can you please suggest other ways on how to get step and add it in tour and also enable the next button with reflex mode on .
Im trying to fetch steps with ajax calls coz I need to check some conditions based on user settings before showing next step . Im fetching next step on onShown method and returning promise in onNext() method . I defined first step and then next one's has to come up with ajax : Here is my js :
Now problem im facing here after step 2 is executed it shows step 2 again .It does not increment to step 3 and all of this happen when Im using reflex .In case of "reflex " it is executing next step quickly and does not wait for anything . Even when Im returning promise to it in onNext method . In onShown method it is not returning correct step and is showing step 1 even on step 2 . (staring from step based on tour object in which steps start from 0) . What could be wrong with current step in onShown method ? Also can you please suggest other ways on how to get step and add it in tour and also enable the next button with reflex mode on .