Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 981445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:32:37+00:00 2026-05-16T04:32:37+00:00

I have a form wizard. On step one I need to display a warning

  • 0

I have a form wizard. On step one I need to display a warning if a certain checkbox is checked and others with a certain class aren’t . The problem is that it displays the confirm/warning on the second step after hitting the next button. I need it to prevent the browser from moving to the second step while displaying the warning.

$("#step0Next").live('click', function(event) {
        var ask = confirm("Do You Really Want To Continue");
        if($("#RT").is(":checked") && !$(".ex").is(':checked') &&
(ask===false)) { 
            event.preventDefault();
        } 
    });

http://www.kinetick.com/Test/purchaseTest
If you don’t make any selections and hit “Next” (“#step0Next”) it goes to step 2 with the confirm dialog. I need that to happen on step 1, pressing cancel would keep you there, hitting OK would allow you to continue onto step 2. Im using the formToWizard.js plug in if that matters.

thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:32:38+00:00Added an answer on May 16, 2026 at 4:32 am

    Warning, this is a bit hacky and specific to your needs and site (others finding this, use other solutions!):

    $("#step0Next").live('click', function(event) {
       $('#step1Prev').click();                                     //go back, hacky!
       if($("#RT").is(":checked") && !$(".ex").is(':checked')) {          //conditons
         if(!confirm("Do You Really Want To Continue")) return;    //user said cancel
         $("#step0Next").die('click');        //user said Ok, prevent prompting again
       }
       $(this).triggerHandler('click');                      //resume normal behavior
    });
    

    Since you can’t override the normal form behavior (their click handler happens before your .live() one), we’re just bypassing it. This quickly clicked the next page’s button to go back to the first page, so instead of preventing the “next” behavior, we’re just reversing it before the UI updates.

    Then if the conditions aren’t met we’re prompting the user to confirm their “move on” choice, but only once, if they click cancel, we’ll continue to prompt, if they click Ok then we let them move on and don’t won’t bother them again by using .die() to remove this .live() handler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have being developing a form with the wizard control. The final step is
We have several wizard style form applications on our website where we capture information
I have a form like this: <form name=mine> <input type=text name=one> <input type=text name=two>
I have a WizardStep Control from which i need one information: The total amount
I have got a form that posts values to a page in a wizard.
I have a Java applet consisting of a wizard-like form with three steps. At
I have form area in my view. If I click button A , I
I have form that displays several keywords (standard set of choice lists that changes
I have a form in C# that has a button that, when clicked, I
I have subclassed Form to include some extra functionality, which boils down to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.