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.

dynamic populate form title

  1. les112
    Member

    I call gravity forms using the code snippet
    'gravity_form(5, $display_title=true, $display_description=true, $display_inactive=false, array("category_id"=>$category_id, "update_title"=>"$slug UPDATE","form_title"=>"$slug Update" ), $ajax=true);'
    All works except for the parameter name, form_title, which I include in the HTML block and allow the field to be populated dynamically using this parameter name.
    I want to dynamically change the title of the form either through the title section of the form editor (properties tab) or using the HTML block field label or its free form textra area. So far I have not been successful.
    Could you please advise how to do this and provide a code snippet example.
    http://www.artphototravel.net

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink
  2. The Form Title field cannot be renamed dynamically. It's set. It's used to identify the form in the admin and isn't intended to be populated dynamically.

    If you want a different title to appear above your form then you will have to display your own markup for the title and then turn off the form title output using $display_title=false.

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink
  3. les112
    Member

    Can I code the HTML block to provide an equivalent title

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink
  4. Sure. You can use the HTML block to provide whatever you want. Or you can place the title just above the function call or shortcode that outputs the form.

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink