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.

Allow field to be populated dynamically on HTML field

  1. On "HTML" field, the option "Allow field to be populated dynamically" is not requesting the parameter to input the data passed. It appears to be a bug.

    Posted 13 years ago on Thursday November 4, 2010 | Permalink
  2. The option shouldn't be there, the HTML field can't be populated dynamically this way. It makes no sense to pass a lot of HTML data in the query string. The field can already be populated dynamically using a hook so the parameter isn't necessary. We will be removing this UI in the next release.

    Posted 13 years ago on Thursday November 4, 2010 | Permalink
  3. Yes, I agree. But how can I use a hook, documentation is not helping, can you provide me an example?

    I need to inject some html content inside the form, before submit button. The reason is to provide the data from user profile, to let they check if they provide all the information I need in the register form and a link to redirect to the profile if they need to change something, this before they submit the form to participate to an offer.

    Posted 13 years ago on Thursday November 4, 2010 | Permalink
  4. Resolved, I could use this filter instead of try to manipulate the HTML box.

    add_filter("gform_submit_button", "form_submit_button");
    function form_submit_button($button){
        return "<input type='submit' value='My new button' />";
    }
    Posted 13 years ago on Friday November 5, 2010 | Permalink