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.

populate field data with shortcode from another plugin (WP e-Member)

  1. igillanders
    Member

    I need to populate some fields in a Gravity form (name, email, address) from data from another plugin (WP e-Member). There are shortcodes for each of these, but I do not know how to pass that data to the Gravity form. I tried putting the shortcodes in the prepopulate parameter box, but that didn't work.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  2. Give this this URL:
    http://example.com/fname=Chris

    You would use a parameter name of "fname" and then when you visit that URL (which is a page with a form embedded in it) the field with a parameter name of 'fname' would be prepopulated with 'Chris'.

    Can you use the shortcode in the default value, rather than the parameter box? The parameter box is use for a name which would be in the query string as shown above. I can't remember if the default value supports shortcodes or not. If it does not, we will need to use another way of pre-populating the form field. You can read about other ways, here:

    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Hooks

    One way would be to get the value from WP e-Member and use the gform_field_value_$parameter_name to pre-populate the value. http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    Posted 12 years ago on Monday November 19, 2012 | Permalink