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

Field Helper for Gravity Forms

外掛說明

Adds a settings page and REST API endpoint to retrieve human- and computer-friendly field names.

See field-helper-for-gravity-forms.brilliantplugins.info for more documentation.

Looking to import Gravity Forms entries from your WordPress website into FileMaker?

Create nearly any form with Gravity Form’s drag-and-drop interface, and use this plugin to quickly import that form’s entry data to your FileMaker solution via fmFlare.

Usage

  • Create a Gravity Forms API key.
  • On each form, go to the Field Helper settings tab and set the friendly names for the fields you need.
  • Append /json to Gravity Forms’ form- or entry-related endpoints to get JSON field data.
  • Retrieve all entries: https://your-site.com/wp-json/gf/v2/entries/json/
  • Retrieve a specific entry: https://your-site.com/wp-json/gf/v2/entries/<entry_id>/json/
  • Retrieve all entries from a specific form: https://your-site.com/wp-json/gf/v2/forms/<form_id>/json/
  • Retrieve a specific entry from a specific form: https://your-site.com/wp-json/gf/v2/forms/<form_id>/entries/<entry_id>/json/

If you need to use the friendly field names in PHP (using the gform_after_submission hook, for instance), follow this example:

// Assuming $entry is a single form entry.
// You can retrieve an entry by id using GFAPI::get_entry( $id );
$entry_with_friendly_names = GF_Field_Helper_Common::replace_field_names( $entry );

安裝方式

  1. Install and activate this plugin.
  2. Create friendly field names on the form settings page:
  3. Use the API endpoints to retrieve entries.
    • The standard entry data is untouched.
    • All named fields are added to a fields object in each entry object.

使用者評論

2023 年 2 月 13 日
My fav plugin for the year – so much pain and suffering saved.Managing multiple similar forms on a website and being able to translate them for systems – bang on plugin.Previously I was running so may queries trying to map the field number id with the field label via a form – super painful. What a concepted – being able to standardise api field names, should be native in the software but I thank you for bringing this online guys.1 enhancement I would love would be the ability to use the field admin name if the field is not populated in the config.Secondly the ability to maybe add some formatting/cleaning on the field values ie lower case and replace any special characters with _ or the like.Help remove any user error in config
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

將〈Field Helper for Gravity Forms〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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