Title: Gravity Forms Dynamic Fields
Author: zaus
Published: <strong>2018 年 9 月 9 日</strong>
Last modified: 2018 年 9 月 13 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/gf-dynamic-fields.svg)

# Gravity Forms Dynamic Fields

 由 [zaus](https://profiles.wordpress.org/zaus/) 開發

[下載](https://downloads.wordpress.org/plugin/gf-dynamic-fields.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/gf-dynamic-fields/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/gf-dynamic-fields/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/gf-dynamic-fields/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/gf-dynamic-fields/#developers)

 [技術支援](https://wordpress.org/support/plugin/gf-dynamic-fields/)

## 外掛說明

Insert cookie, session, page, or other kinds of values dynamically into Gravity 
Forms fields.

Similar to how [Forms: 3rdparty Dynamic Fields](https://wordpress.org/plugins/forms-3rdparty-dynamic-fields/)
can insert dynamic values into the 3rdparty submission.

## 螢幕擷圖

[⌊Configuring Gravity Forms advanced field setting 'allow field to be populated 
dynamically'⌉⌊Configuring Gravity Forms advanced field setting 'allow field to be
populated dynamically'⌉[

Configuring Gravity Forms advanced field setting ‘allow field to be populated dynamically’

## 安裝方式

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Make sure Gravity Forms is installed
 3. Activate plugin
 4. Create or edit a Gravity Form — under the ‘Advanced’ tab of a field, check “allow
    this field to be populated dynamically”.
 5. Set the ensuing ‘Parameter Name’ field to one of the registered placeholders:
 6.  * `session_desiredkey` where ‘session_’ is a prefix indicating you want a Session
       value and ‘desiredkey’ is the index of which Session value to retrieve
     * `cookie_desiredkey` where ‘cookie_’ is a prefix indicating you want a Cookie
       value and ‘desiredkey’ is the index of which Cookie value to retrieve
     * `param_desiredkey` where ‘param_’ is a prefix indicating that you want a URL
       query parameter (or form POST) and ‘desiredkey’ is the index of the request 
       parameter to retrieve. Gravity Forms actually already does this, but it’s included
       for consistency and this `param` will also check for POST parameters.
     * `page_url` gets the current WP page url
     * `page_url_nodomain` gets the current WP page url without the site domain (i.
       e. relative path)
     * `page_url_domain` gets the domain of the current WP page url without the relative
       path
     * `page_url_network` gets the network domain of the current WP page (useful with
       multisite); may be the same as `page_url_domain`
     * `page_referer` attempts to get the current referring url
     * `page_request` gets the server-generated page url (which may/not be the same
       as `page_url`, such as containing the querystring)
     * `page_ip` attempts to get the client’s ip address
     * `time` gets the current timestamp
     * `date` gets the current ISO formatted date
     * `time_local` gets the current timestamp formatted to your local settings
     * `date_local` gets the current date formatted to your local settings
     * `sitename` gets the blog’s name as configured in your admin settings

## 常見問題集

  Installation Instructions

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Make sure Gravity Forms is installed
 3. Activate plugin
 4. Create or edit a Gravity Form — under the ‘Advanced’ tab of a field, check “allow
    this field to be populated dynamically”.
 5. Set the ensuing ‘Parameter Name’ field to one of the registered placeholders:
 6.  * `session_desiredkey` where ‘session_’ is a prefix indicating you want a Session
       value and ‘desiredkey’ is the index of which Session value to retrieve
     * `cookie_desiredkey` where ‘cookie_’ is a prefix indicating you want a Cookie
       value and ‘desiredkey’ is the index of which Cookie value to retrieve
     * `param_desiredkey` where ‘param_’ is a prefix indicating that you want a URL
       query parameter (or form POST) and ‘desiredkey’ is the index of the request 
       parameter to retrieve. Gravity Forms actually already does this, but it’s included
       for consistency and this `param` will also check for POST parameters.
     * `page_url` gets the current WP page url
     * `page_url_nodomain` gets the current WP page url without the site domain (i.
       e. relative path)
     * `page_url_domain` gets the domain of the current WP page url without the relative
       path
     * `page_url_network` gets the network domain of the current WP page (useful with
       multisite); may be the same as `page_url_domain`
     * `page_referer` attempts to get the current referring url
     * `page_request` gets the server-generated page url (which may/not be the same
       as `page_url`, such as containing the querystring)
     * `page_ip` attempts to get the client’s ip address
     * `time` gets the current timestamp
     * `date` gets the current ISO formatted date
     * `time_local` gets the current timestamp formatted to your local settings
     * `date_local` gets the current date formatted to your local settings
     * `sitename` gets the blog’s name as configured in your admin settings

  How does Gravity Forms dynamically populate normally?

See their wiki page for it — https://docs.gravityforms.com/using-dynamic-population/

  How do I get a session value?

See the installation instructions and use `session_yourdesiredkey` as the Parameter
Name, where `yourdesiredkey` is the Session index you want.

  How do I get a cookie value?

See the installation instructions and use `cookie_yourdesiredkey` as the Parameter
Name, where `yourdesiredkey` is the Cookie index you want.

  How do I get a url querystring value?

Use native GF functionality, or see the installation instructions and use `param_yourdesiredkey`
as the Parameter Name, where `yourdesiredkey` is the querystring index you want.

  It doesn’t work right…

Drop an issue at https://github.com/zaus/gf-dynamic-fields or in the Support forum.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

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

[將〈Gravity Forms Dynamic Fields〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/gf-dynamic-fields)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/gf-dynamic-fields/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/gf-dynamic-fields/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/gf-dynamic-fields/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/gf-dynamic-fields/)。

## 變更記錄

#### 0.3

 * added URL just domain
 * added time and date
 * added sitename
 * added querystring parameters
 * added other stuff, see installation
 * basically almost parity with [Forms 3rdparty Dynamic Fields](https://wordpress.org/plugins/forms-3rdparty-dynamic-fields/)
   plugin.

#### 0.2

 * added URL without domain

#### 0.1

IT HAS BEGUN. Supports session, cookie, and a couple page values

## 中繼資料

 *  版本 **0.3**
 *  最後更新 **8 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.31**
 *  語言
 * [English (US)](https://wordpress.org/plugins/gf-dynamic-fields/)
 * 標籤:
 * [contact form](https://tw.wordpress.org/plugins/tags/contact-form/)[form](https://tw.wordpress.org/plugins/tags/form/)
   [gravity forms](https://tw.wordpress.org/plugins/tags/gravity-forms/)[GravityForms](https://tw.wordpress.org/plugins/tags/gravityforms/)
   [session](https://tw.wordpress.org/plugins/tags/session/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gf-dynamic-fields/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/gf-dynamic-fields/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/gf-dynamic-fields/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/gf-dynamic-fields/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://drzaus.com/donate)