WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Data Persistence Add-On
Multi-page Forms (1 post)

  1. wirjo
    Member
    Posted 1 year ago #

    Hi there,

    For multi-page forms, the user is not taken back to the page they were on. I believe this should be a simple fix by adding the below on the pre_populate_form() function.

    GFFormDisplay::process_form($form["id"])

    See below:

    add_filter("gform_pre_render", "pre_populate_the_form");

    function pre_populate_the_form($form) {
    if ($form['isPersistent']) {
    $option_key = getFormOptionKeyForGF($form);
    if (get_option($option_key)) {
    $_POST = json_decode(get_option($option_key), true);
    GFFormDisplay::process_form($form["id"]); //
    }
    }

    return $form;
    }

    Thanks!

    http://wordpress.org/extend/plugins/gravity-forms-data-persistence-add-on/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.