| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 01:25:35 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_review_page/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=opk16ZTwmlSimutmptrfGze2CrFJGqQ3fcY2dHGDTKSGU9Lh82ZayzQ1de7t7FGnDMUdGVIhC5j8mOllkvi5s%2Bum8GpAmST1vTa0yIn2Joy4F1M0"}]}
cf-ray: 9b4d43b9dbc6755c-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 01:25:36 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=pXZXlc4UCwRKXHkB4CqPZ6vnhDlG1NU%2Br2N0kL%2Fz1FlQKT05RqPfYoyKw4vo5l0noQspyKq%2B9lHmofjaOEZdxHhaCa75DkshdQaOdvF7Km9pRH2a"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4d43c08801755c-BLR
gform_review_page - Gravity Forms Documentation
gform_review_page
Description
This filter is executed before the form is displayed and can be used to insert a review page before the final form submission.
Usage
The following would apply to all forms.
add_filter( 'gform_review_page', 'your_function_name' );
To limit the scope of your function to a specific form, append the form id to the end of the hook name. (format: gform_review_page_FORMID)
add_filter( 'gform_review_page_6', 'your_function_name' );
Parameters
- $review_page array
The review page to be created:
array(
'content' => '',
'cssClass' => '',
'is_enabled' => false,
'nextButton' => array(
'type' => 'text',
'text' => __( 'Review Form', 'gravityforms' ),
'imageUrl' => '',
'imageAlt' => '',
),
'previousButton' => array(
'type' => 'text',
'text' => __( 'Previous', 'gravityforms' ),
'imageUrl' => '',
'imageAlt' => '',
),
);
- $form form object
The current form. - $entry entry object
False, or the current entry.
Examples
Example 1
This example enables the review page and populates it with the {all_fields} merge tag.
add_filter( 'gform_review_page', 'add_review_page', 10, 3 );
function add_review_page( $review_page, $form, $entry ) {
// Enable the review page
$review_page['is_enabled'] = true;
if ( $entry ) {
// Populate the review page.
$review_page['content'] = GFCommon::replace_variables( '{all_fields}', $form, $entry );
}
return $review_page;
}
Example 2
This example changes the text of the “Review Form” button.
// NOTE: Update the '221' to the ID of your form.
add_filter( 'gform_review_page_221', 'change_review_page_button', 10, 3 );
function change_review_page_button( $review_page, $form, $entry ) {
$review_page['nextButton']['text'] = 'Review & Submit';
return $review_page;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
gf_apply_filters( 'gform_review_page', $form['id'], $review_page, $form, $partial_entry );
This filter is located in GFFormDisplay::maybe_add_review_page() in form_display.php