Title: Gravity Forms Sticky Form
Author: fried_eggz
Published: <strong>2014 年 10 月 24 日</strong>
Last modified: 2015 年 9 月 1 日

---

搜索插件

![](https://ps.w.org/gravity-forms-sticky-form/assets/banner-772x250.jpg?rev=1014934)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/gravity-forms-sticky-form_edf5f8.svg)

# Gravity Forms Sticky Form

 作者：[fried_eggz](https://profiles.wordpress.org/fried_eggz/)

[下载](https://downloads.wordpress.org/plugin/gravity-forms-sticky-form.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/gravity-forms-sticky-form/#description)
 * [评价](https://cn.wordpress.org/plugins/gravity-forms-sticky-form/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/gravity-forms-sticky-form/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/gravity-forms-sticky-form/#developers)

 [支持](https://wordpress.org/support/plugin/gravity-forms-sticky-form/)

## 描述

#### Sticky Form

Sticky Form is a WordPress plugin for [Gravity Forms](http://www.gravityforms.com/)
that enables forms to be “sticky”. A sticky form stays populated with the users 
submitted data. The data is retrieved from the actual entry. This makes the same
entries editable from both back- and front end.

The sticky form is persistent so that when the user returns, all previous data is
pre populated with his/hers previous submission.

**Note:** There is a bug in earlier versions the Gravity Forms API that prevents
Sticky Form from working correctly. Please update Gravity Forms. For more information,
please see the [FAQ section](https://wordpress.org/plugins/gravity-forms-sticky-form/faq/).

#### Persistent Gravity Forms

Gravity Forms persistens, or stickyness, is usefull if you have a form that acts
as a user profile, company profile or in other similar situations where the data
needs to be persistant every time a user visits that form.

#### Save entry

Sticky Form uses a new Gravity Forms hook to save the submission to the same entry
rather than creating a new entry and deleting the old one. This makes read and starred
status stick!

#### Developers

There is a fully documented version of the plugin on the [Github project page](https://github.com/13pixlar/gravity-forms-sticky-form).
This plugin is Open Source and pull requests are welcome.

This plugin is based on Gravity Forms Data Persistence Add-On Reloaded.

**Note:** [Gravity Forms](http://www.gravityforms.com/) is required for this plugin.

## 安装

#### Installation

 1. Upload extracted folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Choose the required sticky settings on the individual form settings page.

## 常见问题

  Does this work with file upload?

Yes, to some extent. The plugin supports one file upload per form. To output the
link to the file use {upload} in a HTML field. Future versions of this plugin will
support multiple files.

  How is this plugin diffrent from similar plugins?

Sticky Form stores the data in an actual Gravity Forms entry. The advantage is that
the entry can be edited on the back end and the new data will be used to populate
the form on the front end.

Also, Sticky Form does not just delete the old entry and save a new one, thus keeping
its read and starred status.

  Some fields do not get updated

There was a bug in the Gravity Forms api that prevented fields from getting saved
in the entry. The bug was fixed in the latest version of Gravity Forms. Make sure
you use an [updated version](http://www.gravityhelp.com/downloads/). If you are 
not able to update Gravity Forms you can easily apply the patch manually to `plugins/
gravityforms/includes/api.php`

On line `510`, remove

    ```
    if (empty($entry_id))
        $entry_id = $entry["id"];
    ```

and replace with

    ```
    if (empty($entry_id)) {
        $entry_id = $entry["id"];
    }else{
        $entry["id"] = $entry_id;
    }
    ```

## 评价

![](https://secure.gravatar.com/avatar/b4408fc6e1bcb1238df93e5d49786dd34e5614f726fbd43d681c99be6b005731?
s=60&d=retro&r=g)

### 󠀁[good](https://wordpress.org/support/topic/good-2297/)󠁿

 [Hannan](https://profiles.wordpress.org/hannanstd/) 2017 年 2 月 8 日

hi what is this plugins? please put some screenshots . i cant understand this operations.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/)

## 贡献者及开发者

「Gravity Forms Sticky Form」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ fried_eggz ](https://profiles.wordpress.org/fried_eggz/)

[帮助将「Gravity Forms Sticky Form」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gravity-forms-sticky-form)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gravity-forms-sticky-form/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/gravity-forms-sticky-form/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/gravity-forms-sticky-form/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gravity-forms-sticky-form/)。

## 更新日志

#### 1.0.5

 * Fixed: Unserialize list form fields (Thanks to jgryn)

#### 1.0.4

 * Improvment: Use the Gravity Forms API to update form
 * New option: Choose if the entry should be marked as unread upon save

#### 1.0.3

 * Fixed: Fixed a bug where new forms wouldn’t get saved

#### 1.0.2

 * Update: Save as same entry instead of creating a new one (entry retains its read
   and starred status)

#### 1.0.1

 * Fixed: Do not pre-populate if the entry is in trash

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**11 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 2.9.2 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/gravity-forms-sticky-form/)
 * 标签
 * [data](https://cn.wordpress.org/plugins/tags/data/)[field](https://cn.wordpress.org/plugins/tags/field/)
   [form](https://cn.wordpress.org/plugins/tags/form/)[gravity](https://cn.wordpress.org/plugins/tags/gravity/)
   [persistence](https://cn.wordpress.org/plugins/tags/persistence/)
 *  [高级视图](https://cn.wordpress.org/plugins/gravity-forms-sticky-form/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gravity-forms-sticky-form/reviews/)

## 贡献者

 *   [ fried_eggz ](https://profiles.wordpress.org/fried_eggz/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gravity-forms-sticky-form/)