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 8574663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:31:27+00:00 2026-06-11T19:31:27+00:00

I have a multipage form with #p1,#p2,#p3. Once I submit the form, and when

  • 0

I have a multipage form with #p1,#p2,#p3. Once I submit the form, and when I try to click back browser button, it should go to #p1 with empty form fields. it is possible wiith Jquery Mobile?

  • 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-06-11T19:31:28+00:00Added an answer on June 11, 2026 at 7:31 pm

    I would override the backbutton and check for which page is the active page then based on the page do whatever house cleaning you need…

    I submitted an example to another question really similar to this:

    BackButton Handler

    Where I have Options, Popup and HomePage you might just need P3 and when the activePage is equal to P3 clear your form and show P1.

        function pageinit() {
            document.addEventListener("deviceready", deviceInfo, true);
        }
    
        function deviceInfo() {
            document.addEventListener("backbutton", onBackButton, true);
        } 
    
        function onBackButton(e) {
            try{
                var activePage = $.mobile.activePage.attr('id');
    
                if(activePage == 'P3'){
                    clearForm(); // <-- Calls your function to clear the form...
                    window.location.href='index.html#P1';
    
                } else if(activePage == 'P1'){
    
                    function checkButtonSelection(iValue){
                        if (iValue == 2){
                            navigator.app.exitApp();
                        }
                    }
    
                    e.preventDefault();
                    navigator.notification.confirm(
                        "Are you sure you want to EXIT the program?",
                        checkButtonSelection,
                        'EXIT APP:',
                        'Cancel,OK');
    
                } else {
                    navigator.app.backHistory();
                }
            } catch(e){ console.log('Exception: '+e,3); }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with a submit button. I have attached a click event
So I have a form and I would like to disable the submit 'button'
I have this snippet of code to Submit a form once, to prevent multiple
i need to have a form when you press the main submit button all
I have a form for uploading images. I'd like to disable the submit button,
So I have a multipart form that has fields for text, integers and file
I want to have multiple multiple choices given to user after the form submit
I'm trying to upload multiple files at once but have a solo form field
So I have a form to submit photos (to a total of 8), and
I have a form that I am trying to submit with POST. When I

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.