Menu

Go back in a multiple pages form?

Help
2008-07-28
2013-06-03
  • Alexandros Alex

    Alexandros Alex - 2008-07-28

    It is possible to go back in a multiple pages form without loosing data (reload) before submit?

     
    • Musawir Ali

      Musawir Ali - 2008-07-29

      no.

       
    • Alexandros Alex

      Alexandros Alex - 2008-07-31

      Thanks Ali ... :(

       
  • Jake La Foret

    Jake La Foret - 2009-12-09

    Yeah, this is a very basic feature that I truly hope the next version includes. Now, I'm not a code guru by any means, but I did figure a way to do this: Find in the code where the "Next" button is, and then add the following code before it:

        <input type=button onclick="{ collapseElem('mainForm_2'); expandElem('mainForm_1'); movepage();}" class="mainForm" value="Back to page 2"/>;

    Simply make sure that the page numbers used in that code reflect what page you are currently on and what page you wish to go back to.  Note that I removed the validation check, since someone may not fill out the whole page before deciding to go back to the previous page.

    To help see the whole picture, here is the BACK code with the FORWARD code:

        <input type=button onclick="{ collapseElem('mainForm_2'); expandElem('mainForm_1'); movepage();}" class="mainForm" value="Back to page 2"/>;
        <input type=button onclick="if (validatePage2()) { collapseElem('mainForm_2'); expandElem('mainForm_3'); movepage();}" class="mainForm" value="Go to page 4"/>;

    I hope this helps.

     
  • Jake La Foret

    Jake La Foret - 2009-12-09

    I did not experience any data loss - this may depend on what browser is used however (I use FF).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.