There are currently two ways to implement this. One with more and the other with less effort. But less effort also means less control - in other words, jQuery Steps handles showing and hiding the boot message and the asynchronous call itself. Anyway, the first solution (less effort) requires you to add a default async step during initialization, as you are used to.
<div id="wizard"> <h1>Choose</h1> <div> <select id="choose"> <option value="0" selected="selected">default</option> <option value="1">extraordinary</option> </select> </div> <h1>Result 1</h1> <div data-mode="async" data-url="/rest/service/0"></div> </div>
Then add a small piece of code to the onStepChanging event, such as the mentioned melc. This code should analyze the data of the previous step and, if necessary, delete the default async step and add a new one in the same position, but with a different URL.
<script> $(function() { var wizard = $("#wizard").steps({ onStepChanging: function(event, currentIndex, newIndex) { if (currentIndex === 0) { if ($("#choose > option:selected").val() === "1") { wizard.steps("remove", 1); </script>
Another solution has already been described by melc.
source share