1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Partial Fix AdminCP: Form Data lost on Back button

Discussion in 'Resolved Bug Reports' started by Belazor, Apr 3, 2012.

  1. Belazor

    Belazor Active Member

    I'm currently attempting to learn how to write Add-ons for XenForo, and in doing so I've found you need to submit a lot of forms in various ACP areas to get ACP navigation / links up and running.

    I was attempting to create a new Admin Navigation entry, and I was not aware that the ID field has a size limit of 25 characters, so I received an error regarding the size of this field. Seeing no other ways of getting back to the previous page I hit the Back button in Firefox 11... and the form data was erased. rageface.jpg

    4 input fields and 3 dropdowns is no small order to have to re-fill out... Please fix it so that form data is preserved on pressing the browser's Back button if you're going to require this much work to create AdminCP pages.

    Alternatively, AJAX submit with graceful error handling like the front-end has.

    In the AdminCP, form data is wiped out when you encounter an error and go back to correct it. Needs fixing.
    1 person likes this.
  2. ragtek

    ragtek Guest

  3. Mike

    Mike XenForo Developer Staff Member

  4. Mike

    Mike XenForo Developer Staff Member

    For 1.2, I've added ajax validation to most forms in the admin CP (generally where saving data).

    There are some where this isn't really feasible - emailing users is a good example. There seems to be browser variation as to whether it saves any data when you hit the back button. Firefox doesn't want to save anything for me, where as IE and Chrome are fine. I've played with all sorts of caching options for FF and no go there.

    So, partially fixed.
    Luxus likes this.

Share This Page