-
Notifications
You must be signed in to change notification settings - Fork 40
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
Question #51
Comments
It throws the console.log's for sorry & congratulations correctly, but the returns don't work. I know its because that it is a different function, but I"m kind of at a loss how to get it back down to the right function. Is there a way to just directly go to a step and jump out of that success: |
Have you tried using the |
No I haven't. I will look into it though! Thanks. Do you have an example
anywhere of that?
…On Thu, Dec 12, 2019, 6:10 PM Kyle Florence ***@***.***> wrote:
Have you tried using the action method in your transition method? See #45
(comment)
<#45 (comment)>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51?email_source=notifications&email_token=AE74UO2IU7373VHDOSPDXHDQYLHG5A5CNFSM4J2DCGGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYPAUQ#issuecomment-565243986>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE74UOYDAGK5EL4B7SAB37TQYLHG5ANCNFSM4J2DCGGA>
.
|
Hey that worked perfectly! Thanks so much!
Casey
…On Thu, Dec 12, 2019 at 7:36 PM Casey Davis ***@***.***> wrote:
No I haven't. I will look into it though! Thanks. Do you have an example
anywhere of that?
On Thu, Dec 12, 2019, 6:10 PM Kyle Florence ***@***.***>
wrote:
> Have you tried using the action method in your transition method? See #45
> (comment)
> <#45 (comment)>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#51?email_source=notifications&email_token=AE74UO2IU7373VHDOSPDXHDQYLHG5A5CNFSM4J2DCGGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYPAUQ#issuecomment-565243986>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE74UOYDAGK5EL4B7SAB37TQYLHG5ANCNFSM4J2DCGGA>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I hate to make a new issue but I wanted to ask you a question. I have a wizard going with a couple of transitions. Here is my code. Based on the result of servicelookup, I would like to go to a specific step. This doesn't work. What should I do?
<script type="text/javascript"> $("#wrapped").wizard({ transitions: { choosetv: function( $step, action ) { var tvchoice1 = $step.find("[name=tv_choice]:checked").val(); if(tvchoice1 == 'Starter TV - $45/mo'){ return 'additionaltv'; } if(tvchoice1 == 'Advanced TV - $110/mo'){ return 'additionaltv'; } if(tvchoice1 == 'No TV - $0.00'){ return 'end'; } }, servicelookup: function( $step, action ) { var service_address=$("#service_address").val(); $.ajax({ type:'post', url:'check_service_address.php', data:{service_address: service_address}, success:function(data){ if(data == 'not_in_list\r\n'){ console.log("sorry"); return('sorry'); } if(data == 'in_list\r\n'){ console.log("congratulations"); return('internet'); } } }); } } }); </script>
The text was updated successfully, but these errors were encountered: