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.

Pre populate field issue

  1. linusrocks
    Member

    Couldn't find this in the docs:
    On this page i let people choose a package.
    http://sitopro.it/preventivo

    and this is the order page.
    http://sitopro.it/ordine

    I would like to have the links to the order page like http://sitopro.it/ordine?package=1 2 or 3 for the 3 packages.

    and the form field should be autopopulated with the selected package

    How can i do this?

    Somewhere i read you can also prepopulate with POST data and another method, but I really can't find the documentation about it.

    Thanks!

    I actually bought GF just for this because it seems to be the only plugin that have this featured :)

    Posted 13 years ago on Monday August 2, 2010 | Permalink
  2. Here is how you populate a field dynamically using the query string.

    - Edit the form
    - Edit the field you want to populate dynamically
    - Select the Advanced tab
    - Click the "Allow field to be populated dynamically" checkbox
    - Enter a parameter name (ex. Package)

    Now when you link to the page that contains that form, pass the value to that field using the Parameter name you setup above. In my example I used "Package". So you would link to the form like this:

    http://domain.com/myform?Package=Value

    Since this is a drop down, the value has to match the value of the drop down field exactly as it appears in your drop down. This will then pre-select that drop down item.

    Try the above and if you need additional help let me know.

    Posted 13 years ago on Monday August 2, 2010 | Permalink