這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Gravity Forms Sticky Form

外掛說明

Sticky Form

Sticky Form is a WordPress plugin for Gravity Forms 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.

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. 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 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. 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;
}

使用者評論

2017 年 2 月 8 日
hi what is this plugins? please put some screenshots . i cant understand this operations .
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Gravity Forms Sticky Form〉的開發相關工作。

參與者

將〈Gravity Forms Sticky Form〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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