Updated 14 September 2026
On this page
Description
This action runs just before the container that holds both the form and the summary. Use it to print your own markup at that spot. See the visual guide for where every action fires.
A form specific variant exists as well: add _FORMID to the hook name, for example
gotrgf_before_form_container_3 for form 3.Parameters
$form | Array. The Gravity Forms form object
Usage
Copy the below code to the functions.php of your child theme or to your snippet plugin.
add_action( "gotrgf_before_form_container", "my_function", 10, 1 );
function my_function( $form ) {
// $form is the Gravity Forms form array. Echo your own markup here.
echo '<div class="my-note">Form ' . esc_html( $form['id'] ) . '</div>';
}
Since
version 1.1
Didn’t find what you were looking for?
Or contact support and I will help you out.
