Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

How to Hide Finish button untill Last Tab #29

Open
velanchandru opened this Issue · 0 comments

1 participant

@velanchandru

Hi guys,

i want hide the Finish button while coming backwards.i want to show only if the user in the last step and sample code on how to use on showstep,
i know its possible to set this in onShowstep but if i did something in the onShowstep method Wizard not render properly it gets collapsed
i tried the following but no luck.

as StuartMorris said:

onShowStep:
function(){
var currentStep = $("#wizard").smartWizard("currentStep");
if(currentStep)
{
HideShowSubmit(currentStep);
}

function HideShowSubmit(step) {

            var LastTab = Tabs.length; //Total listitem length
            console.log('step: ' + step + ' LastTab: ' + LastTab);
            if (step == LastTab) {

                $('#wizard').smartWizard('setFinishButton', true);
                console.log('show');
            } else {
                $('#wizard').smartWizard('setFinishButton', false);
                console.log('hide');
            }

        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.