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.

bug report: Similar forms embedded on the same page prefilling each other on sub

  1. Hello,

    I found this bug that I wish to report.

    The issue is that a form ("Form A"), under certain circumstances, can pre-fill the form fields in another form that is embedded in the same page ("Form B"), if the fields in question have the same ID. That is, "Form B" is being prefilled onload with submitted data from "Form A".

    To reproduce:
    i) Create a new form. Give this form at least an email and a password field. Turn "Email confirmation" on so that the secondary email field is displayed.
    ii) Save this form
    iii) Duplicate this form
    iv) Embed these two forms in the one page, like so: http://grab.by/byma
    v) Fill out and submit one of the forms
    iv) The other form on the page will have some values prefilled erroneously: http://grab.by/bymn (As you can see, Form 1 submitted correctly and showing a response message, and Form 2 has some values prefilled that shouldn't be)

    This issue is due to the fact that both the second email/second password fields are given the same input name, as they share the same internal ID.

    In the meantime, here are some solutions to this problem if you encounter it:
    i) Recreate the misbehaving field in one of the forms, and delete the old form field. This will ensure that the field names are rendered differently and do not interact across forms.
    ii) Update your forms to use the "Page" or "Redirect" confirmation types, instead of the "Text" type

    Posted 12 years ago on Friday January 13, 2012 | Permalink