विवरण
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.
स्क्रिनसटहरू
स्थापना
- Unzip, upload plugin folder to your plugins directory (
/wp-content/plugins/
) - Make sure Gravity Forms is installed
- Activate plugin
- Create or edit a Gravity Form — under the ‘Advanced’ tab of a field, check “allow this field to be populated dynamically”.
- 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 retrievecookie_desiredkey
where ‘cookie_’ is a prefix indicating you want a Cookie value and ‘desiredkey’ is the index of which Cookie value to retrieveparam_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 thisparam
will also check for POST parameters.page_url
gets the current WP page urlpage_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 pathpage_url_network
gets the network domain of the current WP page (useful with multisite); may be the same aspage_url_domain
page_referer
attempts to get the current referring urlpage_request
gets the server-generated page url (which may/not be the same aspage_url
, such as containing the querystring)page_ip
attempts to get the client’s ip addresstime
gets the current timestampdate
gets the current ISO formatted datetime_local
gets the current timestamp formatted to your local settingsdate_local
gets the current date formatted to your local settingssitename
gets the blog’s name as configured in your admin settings
प्रश्नोत्तर
- Installation Instructions
-
- Unzip, upload plugin folder to your plugins directory (
/wp-content/plugins/
) - Make sure Gravity Forms is installed
- Activate plugin
- Create or edit a Gravity Form — under the ‘Advanced’ tab of a field, check “allow this field to be populated dynamically”.
- 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 retrievecookie_desiredkey
where ‘cookie_’ is a prefix indicating you want a Cookie value and ‘desiredkey’ is the index of which Cookie value to retrieveparam_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 thisparam
will also check for POST parameters.page_url
gets the current WP page urlpage_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 pathpage_url_network
gets the network domain of the current WP page (useful with multisite); may be the same aspage_url_domain
page_referer
attempts to get the current referring urlpage_request
gets the server-generated page url (which may/not be the same aspage_url
, such as containing the querystring)page_ip
attempts to get the client’s ip addresstime
gets the current timestampdate
gets the current ISO formatted datetime_local
gets the current timestamp formatted to your local settingsdate_local
gets the current date formatted to your local settingssitename
gets the blog’s name as configured in your admin settings
- Unzip, upload plugin folder to your plugins directory (
- 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, whereyourdesiredkey
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, whereyourdesiredkey
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, whereyourdesiredkey
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” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्
विकासमा रुचि छ?
आरएसएस द्वारा कोड ब्राउज गर्नुहोस्, एसभीएन रिपजिटरी हेर्नुहोस्, वा विकास लग को सदस्यता लिनुहोस्।
चेन्जलग
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