PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

I've written an extention, but I'm having trouble with inputs not being saved.

  1. CharlyLeetham
    Member

    Hi guys,

    I've written a plugin that dynamically populates fields (select, checkbox, radio) with options determined by the choice that the user has selected from a previous input. It works fine, unless the input is on the last page of a multiple page form, in which case the option selected by the user is no longer saved.

    Does any body know why this may be?

    Thanks in advance.

    Posted 12 years ago on Wednesday June 6, 2012 | Permalink
  2. CharlyLeetham
    Member

    No, sorry, that's wrong. It works unless its on a multi-page form and not on the last page.

    Posted 12 years ago on Thursday June 7, 2012 | Permalink
  3. CharlyLeetham
    Member

    The code that we've created can be viewed here:
    PHP: http://www.pastie.org/private/vbxwwn8da3rbfag9mw3zg
    (This is just part of a bigger class we've written, but it's the bit that handles these functions)

    JS: http://www.pastie.org/private/mk5pqaewfshu2stjeazzcw

    The issue exists on Checkboxes, Select boxes and Radio buttons but not Multiselect boxes.

    The idea is that using Ajax, the Checkboxes / Select / Radio / Multiselect options are dynamically populated based on a previously selected value in a "higher" input.

    The population of options of the options occurs, but for any inputs other than Multiselect, the values are not posted to the next page when the page changes.

    This only occurs we are using a PAGED form, and the inputs are not on the last page of the form.

    Any insight as to which functions / hooks are triggered on a page change are welcome -- we're at a loss to see what we've done incorrectly (given that multiselect works!)

    Posted 12 years ago on Thursday June 7, 2012 | Permalink