Wizard Navigation generic javascript

Glad you got it working. if you’re not going to use the reference to ‘button’, feel free to eliminate it like so:

var $ = skuid.$; var wizard = $('#MyUniqueWizardId').data('object'); var currentStep = wizard.steps[wizard.currentstep]; var stepKeys = Object.keys(wizard.steps), currentIndex = stepKeys.indexOf(wizard.currentstep); if (stepKeys[currentIndex + 1]) { currentStep.navigate(stepKeys[currentIndex + 1]); }