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.

Shortcode within the shortcode

  1. cmccrone
    Member

    I am using a custom field plugin and I'm having issues with having a short code within a gravity forms short code.

    I want the field values to be auto filled with the custom fields.

    ------
    [gravityform id="4" field_values="city=[types field="city-state"]"]

    will look like this

    [gravityform id="4" field_values="city=sandiego"]
    ------

    The problem is i get left with a "] so i don't think it will work

    Any ideas?

    Posted 11 years ago on Tuesday August 7, 2012 | Permalink
  2. Which plugin are you using? I can give it a try. However, I don't believe Gravity Forms is designed to work in this way. You might have to find a way to read the custom field values and pre-populate your field_values differently, not with the short code.

    Posted 11 years ago on Tuesday August 7, 2012 | Permalink
  3. cmccrone
    Member

    Im using the plugin "TYPES" from http://wp-types.com

    I have no idea where to go from here. The plugin within a plugin would be the easiest if it could work.

    Posted 11 years ago on Tuesday August 7, 2012 | Permalink
  4. David Peralty

    You can't pre-populate values this way. You will have to find a way to assign the value to a variable in PHP and use our hooks system to populate fields.

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Posted 11 years ago on Tuesday August 7, 2012 | Permalink