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.

GF v1.5b1 - Not all fields avail to include 'Pass Field Data Via Query String'

  1. zestylemon
    Member

    Using GF v1.5b1; on the Confirmation tab of a new form I'm using the 'Pass Field Data Via Query String' option. Using the 'Insert form field' dropdown list; 4 of my most recently added fields don't appear in the list.

    2 of the fileds are 'date' fields (using the 'date picker')
    2 of the fields are 'dropdown' fields (using a value for each entry)

    Is this a bug or is it not possible to include these 2 types of fields?

    Posted 13 years ago on Sunday November 7, 2010 | Permalink
  2. The field variables only get "refreshed" when you reload the page. So if you add new fields to the form, you will only see them as an option after you save the form and reload the page. This is something we are looking to improve on a later release.
    If the fields don't show up even after reloading the page, let me know and I will look into it.

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  3. zestylemon
    Member

    Thanks for the speedy reply. I thought I'd have to refresh the page so did that but didn't see any difference. I've now tried this on a different browser (at work) and all is good - it looks like the page was most probably cached by my browser.

    Moving forward now...
    It's important to note my form is configured to use European dates. How are dates handled in creating the URL created by 'Pass Field Data Via Query String'?

    I need my 'output URL' to include 12/11/2010 (12th November 2010) which includes the /
    Is GF outputting the / for use in the URL?

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  4. Gravity Forms encodes the / when added in the URL, but when you read it via $_GET["..."], it should be automatically decoded. So it should work as you expect

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  5. zestylemon
    Member

    Getting there... I've just figured out what the problem is. My form consists of a number of dropdown lists; each item (or 'Label') in the list has an associated 'Value'.

    'Pass Field Data Via Query String' is using the 'Label' instead of the 'Value'.

    The email I receive displays the value; but the qury string displays the label.

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  6. By default, Gravity Forms uses the drop down item "Text" when using the replacement variables. To use the "Value" instead, add ":value" to your variable, as follows:

    To use item "Text"
    {DropDown:2}

    To use item "Value"
    {DropDown:2:value}

    Posted 13 years ago on Monday November 8, 2010 | Permalink