Title: Forms: 3rd-Party Dynamic Fields
Author: zaus
Published: <strong>2013 年 10 月 11 日</strong>
Last modified: 2017 年 5 月 5 日

---

搜索插件

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

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

# Forms: 3rd-Party Dynamic Fields

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

[下载](https://downloads.wordpress.org/plugin/forms-3rdparty-dynamic-fields.zip)

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

 [支持](https://wordpress.org/support/plugin/forms-3rdparty-dynamic-fields/)

## 描述

Using pre-configured placeholders like `##UID##`, `##REFERER##`, or `##SITEURL##`,
add dynamic fields to the normally map-only or static-only [Forms: 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
plugin.

## 安装

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Make sure [Contact Form 7](https://wordpress.org/extend/plugins/contact-form-7/)
    or [Gravity Forms](http://www.gravityforms.com/) is installed
 3. Make sure [Forms: 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
    is installed
 4. Activate plugin
 5. Go to new admin subpage _“3rdparty Services”_ under the CF7 “Contact” menu or Gravity
    Forms “Forms” menu and configure services + field mapping.
 6. Configure the new “Dynamic Fields” section to optionally attach the dynamic values
    to the notification messaging (and how)
 7. Using the additional collapsed metabox for examples, add dynamic placeholders as“
    static values” to the service mapping (check ‘Is Value?’ column). Double-click 
    examples to populate each textbox after selecting it.

## 常见问题

  Installation Instructions

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Make sure [Contact Form 7](https://wordpress.org/extend/plugins/contact-form-7/)
    or [Gravity Forms](http://www.gravityforms.com/) is installed
 3. Make sure [Forms: 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
    is installed
 4. Activate plugin
 5. Go to new admin subpage _“3rdparty Services”_ under the CF7 “Contact” menu or Gravity
    Forms “Forms” menu and configure services + field mapping.
 6. Configure the new “Dynamic Fields” section to optionally attach the dynamic values
    to the notification messaging (and how)
 7. Using the additional collapsed metabox for examples, add dynamic placeholders as“
    static values” to the service mapping (check ‘Is Value?’ column). Double-click 
    examples to populate each textbox after selecting it.

  I need help

Submit an issue to the [GitHub issue tracker](https://github.com/zaus/forms-3rdparty-dynamicfields/issues)
in addition to / instead of the WP Support Forums.

  How do I add / configure a service?

See “base plugin” [Forms: 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/).

Expand the box “Dynamic Placeholder Examples” below the ‘save’ button for allowed
dynamic fields.

Additionally, you’ll need to check the ‘Is Value?’ column.

  How do I add GET parameters to my service post?

Use the placeholder `##GET:{urlparam}##` as the static value, which will attach 
the value `XYZ` from the url in `?urlparam=XYZ`.

  How do I add COOKIE parameters to my service post?

Use the placeholder `##COOKIE:{hamburgler}##` as the static value, which will attach
the value `XYZ` from the cookie named `hamburgler`.

  What else can I attach?

These are also listed within the plugin settings under the “[?] Dynamic Placeholder
Examples” metabox — double click each option for automatic entry. Live “example 
previews” are also shown for each within the metabox.

 * `##TIMESTAMP##` = the current timestamp (from [`time`](http://php.net/manual/en/function.time.php))
 * `##DATE_ISO##` = date, formatted to ISO 8601 “Y-m-d\TH:i:sP” (PHP5)
 * `##DATE##` = wordpress-formatted current date (`date_i18n( get_option('date_format'),
   time() );`)
 * `##TIME##` = wordpress-formatted current date (`date_i18n( get_option('date_format'),
   time() );`)
 * `##UID##` = a unique id
 * `##IP##` = the visitor IP
 * `##SITEURL##` = the site url, according to wordpress ([`get_site_url`](https://codex.wordpress.org/Function_Reference/get_site_url))
 * `##NETWORKSITEURL##` = the network site url, according to wordpress ([`network_site_url`](https://codex.wordpress.org/Function_Reference/network_site_url))
 * `##SITENAME##` = the site name, according to wordpress (`get_bloginfo('name')`)
 * `##ADMINEMAIL##` = the admin email, according to wordpress (`get_bloginfo('admin_email')`)
 * `##PAGEURL##` = the current page (permalink) that has the form, according to 
   wordpress ([`get_permalink`](https://codex.wordpress.org/Function_Reference/get_permalink))
 * `##REQUESTURL##` = the current page, according to PHP
 * `##REFERER##` = the referer, according to PHP
 * `##WPREFERER##` = the referer, according to wordpress ([`wp_get_referer`](https://codex.wordpress.org/Function_Reference/wp_get_referer))
 * `##GET:{` = prefix to attach querystring parameters (see section above)
 * `##COOKIE:{` = prefix to attach cookies (see section above)
 * `##SESSION:{` = prefix to attach sessions (see section above)
 * `=` = prefix to perform calculations on other input fields, like `{input_1} /
   12 + round({input_2} / 2)`

## 评价

此插件暂无评价。

## 贡献者及开发者

「Forms: 3rd-Party Dynamic Fields」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Forms: 3rd-Party Dynamic Fields」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/forms-3rdparty-dynamic-fields)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.7.2

bugfixes for session start, nested replace

#### 0.7

 * sessions

#### 0.6.2

 * still fixing missing Parser files; updated to latest from EOS repo

#### 0.6.1

 * fix: added missing Parser files; so embarrassed (^_^;)

#### 0.6

 * calculations via prefix `=` using non-eval parser https://github.com/jlawrence11/
   eos

#### 0.5

 * IP地址

#### 0.4

Addressed github issues #1, #2, #3

 * wpreferer
 * explicit mention of how to use in readme (already in plugin metabox)
 * cookies

#### 0.3.3

Minor bugfixes to pageurl and referer

#### 0.3.2

 * added REFERER
 * more translated text
 * handles nested values

#### 0.3

GET parameters.

#### 0.2

Attaches to notification.

#### 0.1

Base version – dynamic field replacement

## 额外信息

 *  版本 **0.7.3**
 *  最后更新：**9 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/forms-3rdparty-dynamic-fields/)
 * 标签
 * [cf7](https://cn.wordpress.org/plugins/tags/cf7/)[contact form](https://cn.wordpress.org/plugins/tags/contact-form/)
   [contact form 7](https://cn.wordpress.org/plugins/tags/contact-form-7/)[form](https://cn.wordpress.org/plugins/tags/form/)
   [gravity forms](https://cn.wordpress.org/plugins/tags/gravity-forms/)
 *  [高级视图](https://cn.wordpress.org/plugins/forms-3rdparty-dynamic-fields/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/forms-3rdparty-dynamic-fields/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/forms-3rdparty-dynamic-fields/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/forms-3rdparty-dynamic-fields/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://drzaus.com/donate)