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.

Dynamically populating HTML fields

  1. I am not sure this is possible, but wanted to ask.

    I am dynamically populating fields based on GET parameters. This works fine.

    however, I would like to use these dynamic values in an HTML field. For example, if the GET is

    http://somesite.com/?date=2011-8-3

    I would like to 1) populate a hidden field and 2) use that date value in an HTML field for display only. I can do 1) but not 2).

    I could probably use jQuery to copy the data from the hidden field and put it into the HTML on the page, but this seems like a kludge.

    any ideas? or... maybe in the future?

    Posted 12 years ago on Wednesday August 3, 2011 | Permalink
  2. Please see:

    http://www.gravityhelp.com/forums/topic/html-block-does-not-have-populate-dynamically-option#post-31421

    The ability to populate HTML fields is not present, but you can use the gform_pre_render hook to populate the area.

    Posted 12 years ago on Wednesday August 3, 2011 | Permalink
  3. Thanks Chris. It would be much more portable (and easier) to allow for the HTML field to be sort of a template... possibly using things like

    { $field }.

    Posted 12 years ago on Wednesday August 3, 2011 | Permalink
  4. thanks, I have this working now.

    Posted 12 years ago on Thursday August 4, 2011 | Permalink

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