Please Note: We are no longer using forums to facilitate standard support. 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.

Dynamic population using shortcodes

  1. davidcross

    I've a hidden field set up called "source"

    I've checked allow to be populated dynamically with a parameter name of "source"

    I insert this to the page:

    [gravityform id=1 field_values='source=ELLP1']

    What I actually see in the source code is this:

    <input type='hidden' name='gform_field_values' value='source=ELLP1' />

    I'm passing this to Mailchimp and connecting source field in GF with source field in MC - nothing is being passed.

    I need:

    <input type='hidden' name='source' value='ELLP1' />

    Help! :-)

    Thank you

    Posted 4 years ago on Wednesday May 18, 2011 | Permalink
  2. Have you added a Hidden Field to your form and set it up properly?

    - Edit your Form
    - Add a Hidden Field
    - Edit the Hidden Field
    - Give it a Field Label of Source
    - Select the Advanced Tab
    - Check the "Allow field to be populated dynamically" checkbox
    - Give it a parameter name of "source" (without the quotes)
    - See this screenshot:
    - Save your form

    Your shortcode should now work and dynamically populate that hidden field with the value you pass just like in your example above.

    [gravityform id=1 field_values='source=ELLP1']

    It worked in my tests. See this screenshot of the entry created on my test form with a form setup just like I described above:

    Posted 4 years ago on Thursday May 19, 2011 | Permalink
  3. mark.dillon

    How would I set multiple values at once?

    I’ve tried this but I can’t get it to select BOTH field values for the "rule field" checkbox I have setup.

    [gravityform id=1 name=TestingForm title=false ajax=true
    field_values='apparel=SHOOTING Shirt)'

    UPDATE: Of course I figured this one out about 2 minutes after posting. :)

    [gravityform id=1 name=TestingForm title=false ajax=true field_values='apparel=SHOOTING Shirt&rule-field=hide-logo-placement,hide-background-section']

    Posted 4 years ago on Friday July 1, 2011 | Permalink

This topic has been resolved and has been closed to new replies.

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only