이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Gravity Forms Dynamic Fields

설명

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

Similar to how Forms: 3rdparty Dynamic Fields can insert dynamic values into the 3rdparty submission.

스크린샷

  • 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:
    • 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

FAQ

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:
    • 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”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Gravity Forms Dynamic Fields”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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 plugin.

0.2

  • added URL without domain

0.1

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