The gform_review_page filter is used to insert a review page before the final form submission in Gravity Forms.
Usage
A generic example for all forms:
add_filter('gform_review_page', 'your_function_name');
To limit the scope 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.
- $form (form object): The current form.
- $entry (entry object): False, or the current entry.
More information
See Gravity Forms Docs: gform_review_page
Examples
Enable review page with {all_fields} merge tag
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;
}
Change “Review Form” button text
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;
}