Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable last Nav Step #33

Open
4syt opened this issue Jan 29, 2014 · 4 comments
Open

Disable last Nav Step #33

4syt opened this issue Jan 29, 2014 · 4 comments

Comments

@4syt
Copy link

4syt commented Jan 29, 2014

Hi, Sorry if this is not the place. But I am trying to have the last step as a thank you page. How do I disable the last link in the nav bar?

Many thanks.

@elclanrs
Copy link
Owner

I'm not sure I understand... You want to remove the last step from the navigation bar but still be able to get to it? If that's the case you could simply hide it, for example:

$('.idealsteps-nav li:last').hide();

Otherwise, can you show a picture or a demo of what you're trying to achieve?

@4syt
Copy link
Author

4syt commented Jan 30, 2014

Hi Thanks for looking at this for me, I do appreciate it. I also apologize for my lack of knowledge!
I hope the screen shot explains what I want to.

I also want to link to the last step of the form once submitted.
eg. input name="Return" type="hidden" class="hidden" id="Return" value="http://www.domain.com/form.asp?laststep"

screen-shot

@elclanrs
Copy link
Owner

Well, there's nothing built-in, but you could remove the events from the last element like:

$('.idealsteps-nav li:last').off('click');

And then style it with css to look disabled:

/* You may have to play with other selectors
   to style the different parts of the element */
.idealsteps-nav li:last-child {
  background-color: #666;
}

You should still be able to run the .idealforms('lastStep') method to get to the last tab. So you can attach it to a button like shown in the demo.

@4syt
Copy link
Author

4syt commented Jan 31, 2014

Hi Many thanks again.
Disabling last step works a treat.
I am still struggling with the linking to the last step after submitting the form. Forgive my ignorance but the form is submitted to another domain, and it needs a return path.

So I need to link direct to the laststep of the form. any help much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants